Training a neural network with representations of user interface devices

ABSTRACT

A wearable display system can be capable of determining a user interface (UI) event with respect to a virtual UI device (e.g., a button) and a pointer (e.g., a finger or a stylus) using a neural network. The wearable display system can render a representation of the UI device onto an image of the pointer captured when the virtual UI device is shown to the user and the user uses the pointer to interact with the virtual UI device. The representation of the UI device can include concentric shapes (or shapes with similar or the same centers of gravity) of high contrast. The neural network can be trained using training images with representations of virtual UI devices and pointers.

CROSS-REFERENCE TO RELATED APPLICATIONS

This application is a divisional application of U.S. application Ser. No. 15/994,599, filed on May 31, 2018, entitled “TRAINING A NEURAL NETWORK WITH REPRESENTATIONS OF USER INTERFACE DEVICES,” which claims the benefit of priority to U.S. Provisional Application No. 62/537,311, filed on Jul. 26, 2017, entitled “TRAINING A NEURAL NETWORK WITH REPRESENTATIONS OF USER INTERFACE DEVICES,” the content of which is hereby incorporated by reference herein in its entirety.

FIELD

The present disclosure relates to virtual reality and augmented reality imaging and visualization systems and in particular to representations of user interface devices for training and using a machine learning model (e.g., a neural network) for determining user interface events.

BACKGROUND

A deep neural network (DNN) is a computation machine learning model. DNNs belong to a class of artificial neural networks (NN). With NNs, a computational graph is constructed which imitates the features of a biological neural network. The biological neural network includes features salient for computation and responsible for many of the capabilities of a biological system that may otherwise be difficult to capture through other methods. In some implementations, such networks are arranged into a sequential layered structure in which connections are unidirectional. For example, outputs of artificial neurons of a particular layer can be connected to inputs of artificial neurons of a subsequent layer. A DNN can be a NN with a large number of layers (e.g., 10 s, 100 s, or more layers).

Different NNs are different from one another in different perspectives. For example, the topologies or architectures (e.g., the number of layers and how the layers are interconnected) and the weights of different NNs can be different. A weight of a NN can be approximately analogous to the synaptic strength of a neural connection in a biological system. Weights affect the strength of effect propagated from one layer to another. The output of an artificial neuron (or a node of a NN) can be a nonlinear function of the weighted sum of its inputs. The weights of a NN can be the weights that appear in these summations.

SUMMARY

In one aspect, a wearable display system is disclosed. The wearable display system comprises: an image capture device configured to capture an image comprising a pointer; non-transitory computer-readable storage medium configured to store: the image, a virtual user interface (UI) device associated with the image at an image location on the image, and a neural network for determining a UI event trained using: a training image associated with a training virtual UI device, the training image comprising a representation of the training virtual UI device and a training pointer, and a training UI event with respect to the training virtual UI device and the training pointer in the training image; a display configured to display the virtual UI device at a display location when the image is captured by the image capture device, wherein the image location is related to the display location; and a hardware processor in communication with the image capture device, the display, and the non-transitory computer-readable storage medium, the processor programmed by the executable instructions to: receive the image from the image capture device; render a representation of the virtual UI device onto the image at the image location; and determine, using the neural network, a UI event with respect to the pointer in the image and the virtual UI device associated with the image.

In another aspect, a system for training a neural network for determining a user interface event is disclosed. The system comprises: computer-readable memory storing executable instructions; and one or more processors programmed by the executable instructions to at least: receive a plurality of images, wherein an image of the plurality of images comprises a pointer of a plurality of pointers, wherein the image is associated with a virtual user interface (UI) device of a plurality of virtual UI devices at an image location on the image, and wherein the image is associated with a UI event of a plurality of UI events with respect to the virtual UI device and the pointer in the image; render a representation of the virtual UI device onto the image at the image location to generate a training image; generate a training set comprising input data and corresponding target output data, wherein the input data comprises the training image, and wherein the corresponding target output data comprises the UI event; and train a neural network, for determining a UI event associated with the virtual UI device and the pointer, using the training set.

In yet another aspect, a method for training a neural network for determining a user interface event is disclosed. The method is under control of a hardware processor and comprises: receiving a plurality of images, wherein a first image of the plurality of images comprises a first representation of a pointer of a plurality of pointers, wherein the first image is associated with a first representation of a virtual user interface (UI) device of a plurality of virtual UI devices at a first image location in the first image, and wherein the first image is associated with a UI event of a plurality of UI events with respect to the virtual UI device and the pointer in the first image; rendering a first representation of the virtual UI device onto the first image at the first image location to generate a first training image; generating a training set comprising input data and corresponding target output data, wherein the input data comprises the first training image, and wherein the corresponding target output data comprises the UI event; and training a neural network, for determining a UI event associated with the virtual UI device and the pointer, using the training set.

Details of one or more implementations of the subject matter described in this specification are set forth in the accompanying drawings and the description below. Other features, aspects, and advantages will become apparent from the description, the drawings, and the claims. Neither this summary nor the following detailed description purports to define or limit the scope of the subject matter of the disclosure.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 illustrates an example of a physical environment perceived by a user of an augmented reality device.

FIG. 2 illustrates an example of an augmented environment including a physical environment and a virtual remote control perceived by a user of an augmented reality device.

FIG. 3 illustrates an example of representations of buttons of a virtual remote control rendered onto an image, corresponding to a physical environment perceived by a user, captured by an imaging device of an augmented reality device.

FIGS. 4A and 4B illustrate an example stereoscopic pair of images captured by two imaging devices of an augmented reality device with representations of buttons rendered on the images.

FIGS. 5A-5D illustrate example representations of a user interface device.

FIG. 6 shows a flow diagram of an illustrative method of training a neural network for determining a user interface event using a representation of a user interface device.

FIG. 7 shows a flow diagram of an illustrative method of using a neural network to determine a user interface event using a representation of a user interface device.

FIG. 8 depicts an illustration of an augmented reality scenario with certain virtual reality objects, and certain actual reality objects viewed by a person, according to one embodiment.

FIG. 9 illustrates an example of a wearable display system, according to one embodiment.

FIG. 10 illustrates aspects of an approach for simulating three-dimensional imagery using multiple depth planes, according to one embodiment.

FIG. 11 illustrates an example of a waveguide stack for outputting image information to a user, according to one embodiment.

FIG. 12 shows example exit beams that may be outputted by a waveguide, according to one embodiment.

FIG. 13 is a schematic diagram showing a display system, according to one embodiment.

Throughout the drawings, reference numbers may be re-used to indicate correspondence between referenced elements. The drawings are provided to illustrate example embodiments described herein and are not intended to limit the scope of the disclosure.

DETAILED DESCRIPTION

Overview

A virtual user interface (UI) device can be based on the styles or implementations of windows, icons, menus, pointer (WIMP) UI devices. Such virtual UI device styles or implementations are referred herein as a naïve implementation of virtual UI devices. In some embodiments, the process of detecting WIMP UI events is separated into two processes, with the first process being the computation of a location of a pointer (e.g., a finger, a fingertip or a stylus) and the second process being the determination of an interaction of the pointer with the virtual UI device.

One challenge is that two different objects, a pointer and a virtual UI device, need to be localized. On a traditional 2D graphical user interface (GUI), the location of the UI device is known because it is generated in the same coordinates that are used by the GUI pointer device (e.g., a mouse pointer). With an augmented reality device (ARD, such as, e.g., the wearable display system 900 described with reference to FIG. 9), the UI device itself can be generated as appearing at a particular location in the world coordinate system. Errors due to the pose of the ARD and the calibration of the ARD can be introduced. In some implementations, the virtual UI device can be rendered in an ARD coordinate system (e.g., with respect to the coordinate frame of the ARD). With the ARD coordinate system, the calibration of the ARD display can be distinct from the calibration of the one or more outward-facing cameras used to capture images of the pointer for determining the location of the pointer. With either coordinate system, two numbers (e.g., the locations of the virtual UI device and the location of the pointer) may need to be subtracted and zeros or zero-crossings must be detected. The noise in this process can make such analysis very difficult. Challenges remain even if deep neural networks (DNNs), without more, are used to localize the pointer. Disclosed herein are systems and methods for determining such interactions or intersections (referred to herein as UI events) using a DNN directly. In some embodiments, the locations of the pointer and the virtual UI device can also be considered. In some embodiments, focus may be used to determine an interaction or intersection between a pointer and a virtual UI device. The pointer tip and the UI device may need to be in the same focus state for an interaction and a UI event to occur.

The process of training a NN involves presenting the network with both input data and corresponding target output data. This data, comprising both example inputs and target outputs, can be referred to as a training set. Through the process of training, the weights of the network can be incrementally or iteratively adapted such that the output of the network, given a particular input data from the training set, comes to match (e.g., as closely as possible) the target output corresponding to that particular input data.

Constructing a training set for training a NN can present challenges. The construction of a training set can be important to training a NN and thus successful operation of a NN. In some embodiments, the amount of data needed can very large, such as 10 s or 100s of 1000s, millions, or more exemplars of correct behavior for the network. A network can learn, using the training set, to correctly generalize its earnings to predict the proper outputs for inputs (e.g., novel inputs that may not be present in the original training set). Disclosed herein are systems and methods for generating training data for training a NN for determining a user interface (UI) event associated with a virtual UI device and a pointer (e.g., activation of a virtual button by a stylus). An example of such systems can be a gesture recognition system.

A display, such as a head mountable augmented reality display (ARD), mixed reality display (MRD), or virtual reality display (VRD) can implement such trained NN for determining a UI event with respect to a virtual UI device and a pointer. Certain examples described herein refer to an ARD, but this is for illustration and is not a limitation. In other examples, a MRD or VRD can be used instead of an ARD. A user can cause a UI event, such as actuation or activation of a virtual UI device (e.g., a button), using a pointer (e.g., a finger, fingertip, or a stylus) to interact with an ARD or devices in the user's environment. The ARD can determine such activation of a virtual UI device or UI event with respect to the virtual UI device and the pointer using the NN. The NN can be trained using images with representations of UI devices rendered on the images.

The representations of UI devices for training the NN and the representations of UI devices displayed to the user by the ARD can be different in styles. For example, a representation of a UI device displayed to the user by the ARD can be a stylized UI device, such as a stylized button. A representation of a UI device rendered on an image for training the NN can include concentric shapes (or shapes with similar or the same centers of gravity) of high contrast. In some implementations, such representations of UI devices can be advantageously standardized such that similar UI devices have similar representations when rendered onto images used for training the NN. The standardized representations of the UI devices for training the NN can be referred to as standard representations of the UI devices. For example, different types of buttons can have similar representations when rendered onto images used for training the NN. Representations of UI devices can be rendered onto images captured (e.g., a monoscopic image, a stereoscopic pair of images, or a multiscopic set of images). The ARD can determine a UI event has occurred by processing an image of the pointer, captured using an outward-facing camera of the ARD while the user is interacting the virtual UI device, using the NN. A standard representation of the UI device can be rendered onto the image captured, as perceived by the user, prior to the NN processes the image to determine the UI event. In some implementations, the standardized representations can be standardized for training multiple NNs for the same, similar, or different tasks (e.g., identifying different types of UI events, such as touching or pointing with a finger).

Examples User Environment

FIG. 1 illustrates an example of a physical environment as perceived by a user of an ARD. The example environment includes a living room of a user's home. The environment has physical objects such as a television (TV) 104, a physical remote control 108 (sometimes simply referred to as a remote), a TV stand 112, and a window 116. While the user is wearing the ARD, the user can perceive the physical objects and interact with the physical objects. For example, the user may watch the TV 104 while wearing the ARD. The user can control the TV 104 using the physical remote 108. For example, the user can control the physical remote 108 to turn the TV 104 on/off or change the channel or volume of the TV 104. The user can also interact with the TV 104 using a virtual remote. The virtual remote may be generated based on the functions of the physical remote 108. For example, the virtual remote may emulate some or all of the functions of the physical remote 108 (and may provide additional or alternative functionality as well).

In one implementation, the specification of a virtual remote control can be stored in a data store, such as the remote data repository 932 shown in FIG. 9. The specifications can include instructions on how to render the virtual remote (e.g., specifying the layout, buttons and other controls, etc.), the communications channel needed to emulate the remote (e.g., from the IRDA specification), the actual codes to be emulated on that channel (e.g., the exact IR pulse sequence associated with the selection of “Channel 2”, etc.), and so on.

The user can activate a virtual remote. Upon activation, the ARD can render the virtual remote in the user's field of view (FOV). The virtual remote can emulate functions of a target object, such as a physical remote. The user can activate the virtual remote by actuating a user input device such as, e.g., clicking on a mouse, tapping on a touch pad, swiping on a touch screen, hovering over or touching a capacitive button, pressing a key on a keyboard or a game controller (e.g., a 5-way d-pad), pointing a joystick, wand or totem toward the object, pressing a button on a remote control, other interactions with a user input device, etc. The user can also activate the virtual remote using head, eye, or body poses, such as e.g., by gazing or pointing at a target object for a period of time.

In some implementations, to activate the virtual remote, the user can indicate a selection of a target device associated with the virtual remote. For example, the user can indicate a selection of a physical remote to activate a corresponding virtual remote. As shown in FIG. 1, if the user wants to interact with a virtual remote which is based on the functions of the physical remote 108, the user may indicate the physical remote 108 by hand gestures such as touching, pointing with a finger, visually enclosing the objects by, for example, pinching, or using other hand gestures. As an example, the user may point in the direction of the physical remote 108 for an extended period of time. As another example, the user may select a virtual remote associated with the physical remote 108 by making a hand gesture for grabbing the physical remote 108. The user may also indicate the physical remote 108 using a user input device (e.g., the user input device 1104 shown in FIG. 11). For example, the user may point at the physical remote using a stylus. The user can also select a virtual remote by selecting a parent device that the virtual remote controls. The user can use the hand gestures and actuate the user input device for such selection. The user can perceive, via the ARD, the environment. The user can perceive his left arm 120 a, which has a pinch gesture with respect to the TV 104. The ARD may recognize this pinch gesture as a command to render and present the virtual remote associated with the TV 104 to the user. As another example, if the user wants to select a virtual remote for controlling the TV 104, the user can use a body pose (such as grabbing the TV 104 or pointing at the TV 104) to indicate a selection of the TV 104.

Example Augmented Environment

In addition to being a display, an ARD (or MRD or VRD) can be an input device. Non-limiting exemplary modes of input for such devices include gestural (e.g., hand gesture) or motions that make use of a pointer, stylus, or other physical objects. A hand gesture can involve a motion of a user's hand, such as a hand pointing in a direction. Motions can include touching, pressing, releasing, sliding up/down or left/right, moving along a trajectory, or other types of movements in the 3D space. In some implementations, virtual user interface (UI) devices, such as virtual buttons or sliders, can appear in a virtual environment perceived by a user. These UI devices can be analogous to two dimensional (2D) or three dimensional (3D) windows, icons, menus, pointer (WIMP) UI devices (e.g., those appearing in Windows®, iOS™, or Android™ operating systems). Examples of these UI devices include a virtual button, updown, spinner, picker, radio button, radio button list, checkbox, picture box, checkbox list, dropdown list, dropdown menu, selection list, list box, combo box, textbox, slider, link, keyboard key, switch, slider, touch surface, or a combination thereof.

FIG. 2 illustrates an example of an augmented environment 200, including a physical environment and a virtual remote control perceived by a user of an augmented reality device. A virtual remote can mirror some or all of the functions or at least a portion of the layout of the physical remote. This may make it easier for a user, who is familiar with the functionality or layout of a physical remote, to operate the virtual remote control. Upon the selection of a virtual remote by a user, an ARD can render the virtual remote so that it appears visually near the user. For example, as shown in FIG. 2, the ARD can render a virtual remote 124, including a control panel 128, as appearing within the user's reach (e.g., within an arm's length) at a particular location in three dimension (3D) so that the user can conveniently interact with the virtual remote 124. In some embodiments, as the user moves around in his environment, the virtual remote may accordingly move with the user. For example, the ARD can present the virtual remote 124 at a certain distance from the user regardless of the user's current position in the user's environment.

The ARD can render the virtual remote 124 as superimposed onto the user's physical environment. For example, the ARD may render the virtual remote 124 as if it is in front of a wall. The virtual remote 124 can have a non-transparent rendering such that the user can perceive the virtual remote occluding a portion of the user's physical environment, so that the virtual remote appears as if in front of the portion of the environment. In some implementations, the virtual remote 124 may be rendered at least partially transparent so that the user may see through the virtual remote. For example, as shown in FIG. 2, the user can see the window sill as well as the wall even though the user may perceive the virtual remote 124 as being in front of the window and the wall. Portions of the virtual remote (e.g., virtual UI devices, such as buttons, that can activated or actuated by the user) may be rendered less transparently than other portions (e.g., a body or frame) so that the virtual remote 124 occludes less of the background environment.

The user can also move the rendering location, size, or orientation of the virtual remote 124. For example, the user can move the virtual remote 124 closer (or away) to the user, upward/downward, left/right, and so on. The user can also fix the rendering location of the virtual remote 124 to be at a certain distance from the user or be at a certain location (e.g., as appearing to the user in three dimension) in the user's environment.

The user can cause a UI event, such as actuation or activation of a virtual UI device (e.g., a button) of a virtual remote 124, by using a pointer (e.g., a finger, fingertip, or a stylus) to interact with the ARD or devices in the user's environment (e.g., the TV 104). The ARD can determine such activation of a virtual UI device or UI event with respect to the virtual UI device and the pointer using a NN. The NN can be trained using images with representations of UI devices, described in further detail below, that can be different from the representations of the UI devices shown to the user by the ARD. A representation of a UI device, for rendering onto one or more images for training the NN, can include concentric shapes (or shapes with similar or the same centers of gravity) of high contrast. Such representations of the UI devices can be rendered onto images captured (e.g., a monoscopic image, a stereoscopic pair of images, or a multiscopic set of images). The ARD can determine a UI event has occurred by processing an image of the pointer, captured using an outward-facing camera of the ARD while the user is interacting the virtual UI device, using the NN. A standard representation of the UI device can be rendered onto the image captured, as perceived by the user, prior to the NN processes the image to determine the UI event.

The representations of the UI devices for training the NN can be advantageously standardized in some implementations such that similar UI devices have similar representations when rendered onto images used for training the NN. For example, in some implementations, a standard representation of the UI device is a drawable, renderable representation visualization that is used for any type of UI device of a particular type. The standard representation used by the NN may, but need not, be the same as the representation that is made visible to a user by the ARD. A particular type of device can be arranged according to an industry standard or other logical grouping or taxonomy of device types (e.g., television remote controls, or television remote controls by manufacture, or television remote controls by manufacturer and television class (e.g., LCD display, LED display, diagonal size, price, etc.)). In other cases, the standard representation may refer to functionality such as a standard representation for a depressable button, a standard representation for a slider bar, a standard representation for a touch screen, and so forth. The standardized representations of the UI devices for training the NN can be referred to as standard representations of the UI devices. For example, different types of buttons can have similar representations when rendered onto images used for training the NN. In some implementations, the standardized representations can be standardized for training multiple NNs for the same task, similar tasks (e.g., pressing a button or releasing a button pressed), or different tasks (e.g., identifying different types of UI events, such as touching or pointing with a finger).

In FIG. 2, the user can perceive the environment 200 using the ARD. The environment 200 can include physical objects such as the TV 104, the physical remote 108 for controlling the TV 104, the TV stand 112, and the window 116. The environment 200 can also include a virtual remote 124. The virtual remote 124 can emulate the functions of the physical remote 108 to control the TV 104. For example, the layout and functions of virtual UI devices, such as a button 132 a, of the virtual remote 124 may be substantially the same as the physical buttons of the physical remote 104.

The virtual remote 124 may include virtual UI devices, such as a virtual keyboard, a virtual button, a virtual switch, toggle, or slider, a virtual touch surface, or any components thereof (e.g., a key of a keyboard). These virtual UI devices may be part of the control panel 128 of the virtual remote 124. To interact with the virtual remote 124, the user can initiate an UI event (e.g., activating or deactivating) with respect to a virtual UI device. For example, the user can interact with a virtual UI device 132 a by touching, pressing, releasing, sliding up/down or left/right, moving along a trajectory, or other types of movements in the 3D space.

Upon actuation or activation of a virtual UI device, such as a virtual button of the virtual remote 124, the ARD may communicate with the TV 104 as if it were the physical remote 108. As an example, in FIG. 2, the user can use a pointer (e.g., a finger of a right hand 120 b or a stylus) to activate a virtual UI device 132 a. The ARD can use an outward-facing imaging system to image the location of the pointer. As further described below, based on the location of the pointer, the ARD can compute which a UI event (such as activation) with respect to the virtual UI device and the pointer. In the example depicted in FIG. 2, the ARD can determine that the user's right index finger is activating the button 132 a. In addition to activating a virtual button using a hand gesture, the user can also activate the virtual button using a user input device, such as a stylus, a pointer, a wand or a totem.

Once the ARD detects that the user has activated a virtual UI device of the virtual remote 124, the ARD can accordingly send a signal, via a signal generator such as an IR emitter, to a corresponding device (e.g., the TV 104) to instruct the device to perform an action based on the virtual UI device by the user. For example, the user can touch the virtual button 132 a on the virtual remote 124. If this button 132 a is associated with increasing the volume of the TV 104, the ARD can accordingly generate a signal (such as an IR signal generated by an IR emitter on the ARD) and communicate the signal to the TV 104 (which may have an IR detector), thereby causing the TV 104 to increase its volume. The signal generated by the ARD can be the same signal that would be generated by the corresponding physical remote control.

In cases where the signal is a line-of sight signal (such as an IR signal that must be directed at the IR detector of the TV), the emitter on the ARD may need to be directed toward the device (just as a physical remote control must be pointed at its associated device). Advantageously, the ARD may be configured to determine whether the requested command (e.g., to increase the volume of the TV 104 or change a channel) has occurred (e.g., by using a microphone on the ARD to determine an increase in sound intensity or an outward-facing camera to determine the display of the TV 104 has changed, respectively). If the effect of the command has not been produced by the device being controlled, the ARD may instruct the user to change the user's pose so that the emitter of the ARD is directed toward the device being controlled. For example, the ARD may generate a visual graphic (or audible instruction) to point the user's head toward the device being controlled. In some implementations, the communication between the ARD and the device may not require an unobstructed line-of-sight e.g., when wireless RF signals or ultrasonic acoustic signals are used), and the foregoing functionality may be optional.

When the user is done with the virtual remote 104, the user may use a hand gesture to cause the display of the virtual remote 124 to disappear. As an example, while the user is watching a TV program, the user may decide that he does not need the virtual remote any more. As a result, the user may wave his hand to indicate that he is done with the virtual remote 124. The user may also press a virtual UI device (e.g., a power button 136 a) on the virtual remote 124 to dismiss the virtual remote 124. The ARD may, in response, cease displaying the virtual remote 124 or display the virtual remote 124 so that it is substantially less visually perceptible (e.g., with increased transparency), which may assist the user in later selecting the virtual remote 124.

In certain implementations, the ARD may temporarily hide the virtual remote 124 from the user's FOV or move the virtual remote outside of the user's FOV or to an edge of the user's FOV automatically or in response to a user command. For example, the ARD can also automatically hide a virtual remote 124 if a threshold condition is met. The ARD can detect that none of the virtual UI devices, such as the buttons of the virtual remote 124, have been inactive for a threshold period of time (such as 10 seconds, 1 minute, 2 minutes, etc.). The ARD can gradually fade out the virtual remote 124, such as by increasing the transparency of the virtual remote 124. For example, the virtual remote 124 may change from non-transparent to transparent as part of the fading out process. The ARD can also fade out the virtual remote 124 by decreasing the visibility of the virtual remote 124. For example, the ARD can gradually reduce the size of the virtual remote 124 or change the color of the virtual remote 124 from a dark color to a light color.

Although some examples herein are described in the context of using a virtual remote control (e.g., activating one or more virtual UI devices, such as buttons, of a virtual remote control) to control a physical device (e.g., a physical television), this is for illustration only and is not intended to be limiting. Embodiments of the virtual remote control or virtual UI devices can be used, additionally or alternatively, to control virtual devices. For example, a user of the ARD can use a virtual remote control to control a virtual television that is rendered by the ARD and displayed to the user.

Example Rendering of Representations of UI Devices

Disclosed herein are systems and methods for generating a training set, including example inputs and target outputs, training a neural network (NN) using the training set, and using a trained NN. The topology of the NN can be any functional topology, such as Alex-Net or a derivative of it. The topology of the NN can include a recurrent network, which can be used to provide temporal context to the category classification.

A NN can be trained using an input data set that is categorical. For example, different UI events (e.g., a virtual UI device is activated or not activated) can correspond to different categorical values in the input data set. In some embodiments, the input data set can include some quantitative values. The NN can be trained to recognize two or more state corresponding to different categorical values, such as a state of a virtual UI device being activated and a state of the virtual UI device not being activated. For example, if the virtual UI device is a button, then the NN can be trained to recognize the states: “pressed” and “not pressed.” Other states, such as “touching,” can be possible.

The example inputs and target outputs can include images with representations of virtual UI devices rendered on them. The representation of a UI device rendered on an image may not be the representation visible to the user, but rather a drawable, renderable visualization that can be used for UI devices of a particular type. For example, all button type UI devices can be represented as a solid white disk in some implementations.

In some embodiments, a trained NN can use a camera image to determine if a UI event has taken place. A camera can be placed so as to see a pointer (e.g., a finger or a stylus), and the images captured can be given to the NN as input. The output of the NN can include a determination as to if a UI event has taken place, and if so, the particular UI event that has occurred.

In some embodiments, the UI device, in its representation for training the NN, can be rendered onto every image that is input to the NN, both in training, as well as in operation. “Rendered onto” can refer to that the UI device, in its representation, is rendered to appear precisely as it would at its virtual location if viewed from the location of the camera used to capture the image (and with the view frustum appropriate for the measured intrinsic parameters of the camera and its associated lens, alone or in combination; intrinsic parameters can include, e.g., focal lengths, principal point offsets, and axis skew of the camera).

In this way, the image is an augmented image, containing both the pointer and the representation of the virtual UI device. When the NN is trained, all images presented can have such representations of one or more virtual UI devices rendered on each. Each such image can be associated with its state (e.g., “button pressed”). Negative examples can be similarly provided to the DNN during the training process, in which the UI devices can be rendered on the images but the virtual UI device may not be activated (e.g., “button not pressed”).

FIG. 2 illustrates an example of an augmented environment 200 including a physical environment and a virtual remote control perceived by a user of an augmented reality device. A user interface, including a remote control 124 and virtual UI events (e.g., a button 132 a) can be presented visually to the user in any appropriate graphical form. The DNN can be given a modified version of the image of the user's environment perceived by the user and captured by a camera (such as the outward-facing imaging system 1154 in FIG. 11). For example, the modified image can include annotated virtual UI devices, such as the standardized representations for the UI devices, not the version actually shown to the user (FIG. 3). FIG. 3 illustrates an example of representations of buttons of a virtual remote control rendered onto an image, corresponding to a physical environment 300 perceived by a user, captured by an imaging device of an augmented reality device.

In some embodiments, representations of buttons or UI devices can be rendered without occlusion, such that the representations can appear “on top of” (e.g., from the point of view of the image) the pointer (FIG. 3). For example, a representation 132 b of the button 132 a is shown in FIG. 3 with the fingertip of the user occluded. The representation 132 b of the button 132 a appears as “on top of” the fingertip of the user. The NN can advantageously determine UI events in images with representations rendered with or without occlusion, whether the NN is trained using images with representations rendered with or without occlusion. Examples of representations of UI devices are described below with reference to FIGS. 5A-5D.

In some embodiments, the locations of the pointer and the virtual UI device can also be considered. In some embodiments, focus may be used to determine an interaction or intersection between a pointer and a virtual UI device. The pointer tip and the UI device may need to be in the same focus state for an interaction and a UI event to occur.

In some embodiments, multiple virtual UI devices may be present to a user simultaneously. For example, as shown in FIG. 2, a user can perceive a plurality of virtual UI devices of a remote control 124, such as the buttons 132 a, 136 a. The image with representations rendered on it can include representations of a plurality of buttons (e.g., representations 132 b, 136 b of the buttons 132 a, 136 a as shown in FIG. 3). The particular virtual UI device involved in a UI event can be determined. For example, when generating the training set, the virtual UI device involved in a UI even can be determined post facto after the image is captured. Methods based on localization of the pointer with respect to the virtual UI devices can be used for this post facto determination as the required precision may be less.

In some embodiments, the training set can include pairs of stereoscopic images. For example, a forward-facing imaging system of an ARD can include two or more imaging devices (e.g., cameras) for capturing stereoscopic images. FIGS. 4A and 4B illustrate an example stereoscopic pair of images 400 a, 400 b captured by two imaging devices of an augmented reality device with representations of buttons rendered on the images. For example, representation 132 b 1, 136 b 1 of the buttons 132 a, 136 a are shown in image 400 a, and corresponding representation 132 b 2, 136 b 2 of the buttons 132 a, 136 a are shown in image 400 b. The representations 132 b 1, 132 b 2 of the button 132 a in the pair of images 400 a, 400 b appear as “on top of” the fingertip of the user. In FIGS. 4A-4B, the left hand 120 a is closer than the right hand 120 b to the user, and the television 104 and background (e.g., the wall) is farther from the right hand 120 b, as seen by the visible disparities between the locations of the left hand 120 a and the TV 104 in the images 400 a, 400 b. Because the right hand 120 b and the UI devices and their representations (e.g., the buttons 132 a, 136 a and their corresponding representations 132 b 1, 132 b 2, 136 b 1, 136 b 2) are at the same depth, no relative disparity between the right hand 120 b and the UI devices and their representations exist. In some implementations, sets of monoscopic images can be used in training the NN and determining UI events using the NN. For example, a forward-facing imaging system of an ARD can include multiple imaging devices (e.g., cameras) for capturing multiscopic images. Such NN can advantageously have superior results can be expected in that case.

Example Representations of UI Devices

FIGS. 5A-5D illustrate example representations of a user interface (UI) device. To facilitate a distinct image of the UI device, a representation of a UI device for training a NN can include concentric shapes (or shapes with similar or the same centers of gravity) of high contrast. FIG. 5A shows a representation 500 a of a button with three concentric rings 504 a-512 a rendered onto a fingertip 516 a without occlusion by the fingertip 516 a. The representation 500 a can include a black ring 508 a with a white ring 504 a outside the black ring 508 a and a white ring 512 a within the black ring 508 a. The dotted lines shown adjacent the white rings 504 a and 512 a in FIG. 5A (and FIGS. 5B-5D) are not part of the representation of the button 500 a. The dotted lines are shown in FIG. 5A to delineate the white rings from the portion of the image, captured by an outward-facing imaging system, surrounding the representation 500 a being rendered.

FIG. 5B shows a representation 500 b of a button with two concentric rings 504 b-508 b rendered onto a fingertip 516 b without occlusion by the fingertip 516 b. The representation 500 b can include a black ring 508 b with a white ring 504 b outside the black ring 508 b and no white ring within the black ring 508 b. FIG. 5C shows a representation 500 c of a button with two rings 504 c-508 c and a circle 512 c rendered onto a fingertip 516 c without occlusion by the fingertip 516 c. The representation 500 c can include a black ring 508 c with a white ring 504 c outside the black ring 508 c and a white circle within the black ring 508 c.

FIG. 5D shows a representation 500 d of a button with three concentric rings 504 d-512 d rendered with alpha blending onto a fingertip 516 d without occlusion by the fingertip 516 d. The representation 500 d can include a black ring 508 d with a white ring 504 d outside the black ring 508 d and a white ring 512 d, within the black ring 508 a, rendered with alpha blending such as the ring is increasingly transparent (e.g., alpha transparency value approaching zero) as the distance from the black ring increases. The four dotted lines shown on top of the white ring 5 are not part of the representation of the button 500 d. These dotted liens are shown in FIG. 5D to delineate the regions of the white ring 512 d with different transparency values. In some embodiments, the four regions of the white ring 512 d can be considered as four concentric rings 512 d 1-512 d 4 with different transparency values.

In some implementations, rendering of representations onto images for training a NN may or may not take into account of occlusion by a pointer. For example, images of a pointer can be captured either stereoscopically, with structured light projection, a time of flight camera, or a combination thereof. From these images, a depth field can be associated with any image. This depth field can be used to provide occlusion to the representation of the UI device when rendering both the training and input data.

Example Machine Learning Models and NNs

In some embodiments, a machine learning model comprises a classification model. The classification model can comprise a supervised classification model, a semi-supervised classification model, an unsupervised classification model, or a combination thereof. The machine learning model can comprise a neural network, a linear regression model, a logistic regression model, a decision tree, a support vector machine, a Naïve Bayes network, a k-nearest neighbors (KNN) model, a k-means model, a random forest model, or any combination thereof. The machine learning model can comprise an association rule learning model, an inductive logic programming model, a reinforcement learning model, a feature learning model, a similarity learning model, a sparse dictionary learning model, a genetic algorithm model, a rule-based machine learning model, a learning classifier system model, or any combination thereof.

A layer of a neural network (NN), such as a deep neural network (DNN) can apply a linear or non-linear transformation to its input to generate its output. A deep neural network layer can be a normalization layer, a convolutional layer, a softsign layer, a rectified linear layer, a concatenation layer, a pooling layer, a recurrent layer, an inception-like layer, or any combination thereof. The normalization layer can normalize the brightness of its input to generate its output with, for example, L2 normalization. The normalization layer can, for example, normalize the brightness of a plurality of images with respect to one another at once to generate a plurality of normalized images as its output. Non-limiting examples of methods for normalizing brightness include local contrast normalization (LCN) or local response normalization (LRN). Local contrast normalization can normalize the contrast of an image non-linearly by normalizing local regions of the image on a per pixel basis to have a mean of zero and a variance of one (or other values of mean and variance). Local response normalization can normalize an image over local input regions to have a mean of zero and a variance of one (or other values of mean and variance). The normalization layer may speed up the training process.

The convolutional layer can apply a set of kernels that convolve its input to generate its output. The softsign layer can apply a softsign function to its input. The softsign function (softsign(x)) can be, for example, (x/(1+|x|)). The softsign layer may neglect impact of per-element outliers. The rectified linear layer can be a rectified linear layer unit (ReLU) or a parameterized rectified linear layer unit (PReLU). The ReLU layer can apply a ReLU function to its input to generate its output. The ReLU function ReLU(x) can be, for example, max(0, x). The PReLU layer can apply a PReLU function to its input to generate its output. The PReLU function PReLU(x) can be, for example, x if x≥0 and ax if x<0, where a is a positive number. The concatenation layer can concatenate its input to generate its output. For example, the concatenation layer can concatenate four 5×5 images to generate one 20×20 image. The pooling layer can apply a pooling function which down samples its input to generate its output. For example, the pooling layer can down sample a 20×20 image into a 10×10 image. Non-limiting examples of the pooling function include maximum pooling, average pooling, or minimum pooling.

At a time point t, the recurrent layer can compute a hidden state s(t), and a recurrent connection can provide the hidden state s(t) at time t to the recurrent layer as an input at a subsequent time point t+1. The recurrent layer can compute its output at time t+1 based on the hidden state s(t) at time t. For example, the recurrent layer can apply the softsign function to the hidden state s(t) at time t to compute its output at time t+1. The hidden state of the recurrent layer at time t+1 has as its input the hidden state s(t) of the recurrent layer at time t. The recurrent layer can compute the hidden state s(t+1) by applying, for example, a ReLU function to its input. The inception-like layer can include one or more of the normalization layer, the convolutional layer, the softsign layer, the rectified linear layer such as the ReLU layer and the PReLU layer, the concatenation layer, the pooling layer, or any combination thereof.

The number of layers in the NN can be different in different implementations. For example, the number of layers in the DNN can be 50, 100, 200, or more. The input type of a deep neural network layer can be different in different implementations. For example, a layer can receive the outputs of a number of layers as its input. The input of a layer can include the outputs of five layers. As another example, the input of a layer can include 1% of the layers of the NN. The output of a layer can be the inputs of a number of layers. For example, the output of a layer can be used as the inputs of five layers. As another example, the output of a layer can be used as the inputs of 1% of the layers of the NN.

The input size or the output size of a layer can be quite large. The input size or the output size of a layer can be n×m, where n denotes the width and m denotes the height of the input or the output. For example, n or m can be 11, 21, 31, or more. The channel sizes of the input or the output of a layer can be different in different implementations. For example, the channel size of the input or the output of a layer can be 4, 16, 32, 64, 128, or more. The kernel size of a layer can be different in different implementations. For example, the kernel size can be n×m, where n denotes the width and m denotes the height of the kernel. For example, n or m can be 5, 7, 9, or more. The stride size of a layer can be different in different implementations. For example, the stride size of a deep neural network layer can be 3, 5, 7 or more.

In some embodiments, a NN can refer to a plurality of NNs that together compute an output of the NN. Different NNs of the plurality of NNs can be trained for different tasks. For example, different NNs of the plurality of NNs can be trained for determining occurrences of different UI events (e.g., different types of activating virtual UI devices, such as touching or pointing) with respect to similar types of virtual UI devices and pointers. As another example, different NNs of the plurality of NNs can be trained for determining occurrences of similar UI events with respect to similar types of virtual UI devices and different pointers (e.g., a stylus or a fingertip). As a further example, different NNs of the plurality of NNs can be trained for determining occurrences of similar UI events with respect to different types of virtual UI devices (e.g., a button or a slider) and pointers. A processor (e.g., a processor of the local data processing module 924 in FIG. 9) can compute outputs of NNs of the plurality of NNs to determine an output of the NN. For example, an output of a NN of the plurality of NNs can include a likelihood score. The processor can determine the output of the NN including the plurality of NNs based on the likelihood scores of the outputs of different NNs of the plurality of NNs.

Example Neural Network Training Method

FIG. 6 shows a flow diagram of an illustrative method 600 of training a machine learning model (e.g., a neural network) for determining a user interface event using a representation of a user interface device. At block 604, an image of a pointer can be received. The image can be associated with a virtual user interface (UI) device (e.g., a virtual button) at an image location in the image. The image can be associated with a UI event with respect to the UI device and the pointer (e.g., a button has been pressed).

The UI event can correspond to a state of a plurality of states of the virtual UI device. The plurality of states comprises activation or non-activation of the virtual UI device, such as touching, pressing, releasing, sliding up/down or left/right, moving along a trajectory, or other types of movements. The UI device can be a button, an updown, a spinner, a picker, a radio button, a radio button list, a checkbox, a picture box, a checkbox list, a dropdown list, a dropdown menu, a selection list, a list box, a combo box, a textbox, a slider, a link, a keyboard key, a switch, a slider, a touch surface, or a combination thereof. The UI pointer can be an object associated with a user or a part of the user, such as a pointer, a pen, a pencil, a marker, a highlighter, a finger of the user, or a combination thereof.

At block 608, a representation of the virtual UI device can be rendered onto the image at the image location to generate a training image. This representation of the virtual UI device can be different from the representation of the UI device shown to the user (e.g., a stylized button). In some cases, the representation is a standard representation as described herein. The representation of the virtual UI device rendered onto the image can include a plurality of shapes of high contrasts. In some embodiments, the plurality of shapes of high contrasts includes a plurality of concentric shapes of high contrast. Alternatively, or additionally, the centers of gravity of shapes of the plurality of shapes can be within a threshold distance of each other. The threshold distance can be based on 0, 1, 2, 5, 10, or more pixels or a percentage (e.g., 0%, 0.1%, 1%, 2%, or more) of a size of a shape of the plurality of shapes.

In some embodiments, the plurality of shapes can include a first shape and a second shape that are adjacent each other. For example, the first shape can be within or outside the second shape. The first shape of the plurality of shapes can be associated with a first color (e.g., black or a dark color). The second shape of the plurality of shapes can be associated with a second color (e.g., white or a light color). The second shape can be partially transparent. For example, the second shape can include a first region and a second region. The second region of the second shape can be further away from the first region of the second shape. The first region of the second shape can be associated with a first transparency value (e.g., an alpha transparency value). The second region of the second shape is associated with a second transparency value. The second transparency value can be smaller than the first transparency value. For example, the second region which is further away than the first region can have a larger transparency value and is more transparent. The plurality of shapes of high contrast can include a third shape with a third color (e.g., white or light color). The first shape can be adjacent to the first shape. For example, the third shape can be within or outside the first shape.

At block 612, a training set including input data and corresponding target output data can be generated. The input data can include the training image. The target output data can include the UI event. In some embodiments, the training set can include pairs of stereoscopic images or sets of multiscopic images. For example, a first representation of the virtual UI device can be rendered on a first image of a pair of stereoscopic images. A second representation of the virtual UI device can be rendered on a second image of the pair of stereoscopic images. The two representations can be different, the same, or have different sizes.

At block 616, a neural network (NN) can be trained, using the training set, for determining a UI event. The training set can include monoscopic images, pairs of stereoscopic images, or sets of multiscopic images with representations of UI devices for training the NN. The process of training the NN involves presenting the network with both input data and corresponding target output data of the training set. Through the process of training, the weights of the network can be incrementally or iteratively adapted such that the output of the network, given a particular input data from the training set, comes to match (e.g., as closely as possible) the target output corresponding to that particular input data.

Example Method of User Interface Event Determination

FIG. 7 shows a flow diagram of an illustrative method of using a machine learning model (e.g., a neural network) to determine a user interface event using a representation of a user interface device. A user device, such as a head mountable or wearable ARD or display system, can implement the method 700. At block 704, the ARD can receive a neural network (NN) trained using a training set including a training image. The training image can include a pointer and a representation of a virtual UI device. The training image can be associated with a UI event with respect to the virtual UI device and the pointer. For example, the NN can be the NN trained using the method 600.

At block 708, the ARD can receive an image of a pointer. The image is associated with a virtual UI device at an image location. For example, the image can be captured by a forward-facing imaging system of the ARD when the virtual device is displayed to the user by the ARD. The UI device can be a button, an updown, a spinner, a picker, a radio button, a radio button list, a checkbox, a picture box, a checkbox list, a dropdown list, a dropdown menu, a selection list, a list box, a combo box, a textbox, a slider, a link, a keyboard key, a switch, a slider, a touch surface, or a combination thereof. The UI pointer can be an object associated with a user or a part of the user, such as a pointer, a pen, a pencil, a marker, a highlighter, a finger of the user, or a combination thereof.

At block 712, the ARD can render a representation of the virtual UI device onto the image at the image location associated with the virtual UI device. As described in detail with reference to the method 600, the representation of the virtual UI device can be rendered onto the image at the image location to generate a training image. The representation of the virtual UI device can include a plurality of shapes of high contrasts. In some embodiments, the plurality of shapes of high contrasts includes a plurality of concentric shapes of high contrast. Alternatively, or additionally, the centers of gravity of shapes of the plurality of shapes can be within a threshold distance of each other. In some embodiments, the plurality of shapes can include adjacent shapes of different colors (e.g., black, a dark color, white, or a light color). The representation of the virtual UI device rendered by the ARD at block 712 can be similar or the same as the representation of the UI device rendered at block 608 for generating the training image.

At block 716, the ARD can determine, using the NN, a UI event with respect to the pointer in the image and the virtual UI device associated with the image. The UI event can correspond to a state of a plurality of states of the virtual UI device. The plurality of states comprises activation or non-activation of the virtual UI device, such as touching, pressing, releasing, sliding up/down or left/right, moving along a trajectory, or other types of movements. Optionally, the ARD can generate a virtual content, virtual image information, or a modified version thereof, based on the UI event determined and cause the virtual content to be provided to a wearer of the ARD via its display. Additionally, or alternatively, the ARD can perform an action based on the UI event. For example, the ARD can cause the TV 104 described with reference to FIG. 1 to be turned on. Descriptions of generating virtual content or performing actions based on UI events are provided in U.S. patent application Ser. No. 15/829,249, filed on Dec. 1, 2017, entitled “VIRTUAL USER INPUT CONTROLS IN A MIXED REALITY ENVIRONMENT,” the content of which is hereby incorporated by reference herein in its entirety.

Example Augmented Reality Scenario

Modern computing and display technologies have facilitated the development of systems for so called “virtual reality” or “augmented reality” experiences, wherein digitally reproduced images or portions thereof are presented to a user in a manner wherein they seem to be, or may be perceived as, real. A virtual reality “VR” scenario typically involves presentation of digital or virtual image information without transparency to other actual real-world visual input; an augmented reality “AR” scenario typically involves presentation of digital or virtual image information as an augmentation to visualization of the actual world around the user; or a mixed reality “MR” scenario that typically involves merging real and virtual worlds to produce new environment where physical and virtual objects co-exist and interact in real time. As it turns out, the human visual perception system is very complex, and producing a VR, AR, or MR technology that facilitates a comfortable, natural-feeling, rich presentation of virtual image elements amongst other virtual or real-world imagery elements is challenging. Systems and methods disclosed herein address various challenges related to VR, AR, and MR technology.

FIG. 8 depicts an illustration of an augmented reality scenario with certain virtual reality objects, and certain actual reality objects viewed by a person. FIG. 8 depicts an augmented reality scene 800, wherein a user of an AR technology sees a real-world park-like setting 810 featuring people, trees, buildings in the background, and a concrete platform 820. In addition to these items, the user of the AR technology also perceives that he “sees” a robot statue 830 standing upon the real-world platform 820, and a cartoon-like avatar character 840 (e.g., a bumble bee) flying by which seems to be a personification of a bumble bee, even though these elements do not exist in the real world.

In order for a three dimensional (3D) display to produce a true sensation of depth, and more specifically, a simulated sensation of surface depth, it is desirable for each point in the display's visual field to generate the accommodative response corresponding to its virtual depth. If the accommodative response to a display point does not correspond to the virtual depth of that point, as determined by the binocular depth cues of convergence and stereopsis, the human eye may experience an accommodation conflict, resulting in unstable imaging, harmful eye strain, headaches, and, in the absence of accommodation information, almost a complete lack of surface depth.

VR, AR, and MR experiences can be provided by display systems having displays in which images corresponding to a plurality of depth planes are provided to a viewer. The images may be different for each depth plane (e.g., provide slightly different presentations of a scene or object) and may be separately focused by the viewer's eyes, thereby helping to provide the user with depth cues based on the accommodation of the eye required to bring into focus different image features for the scene located on different depth plane and/or based on observing different image features on different depth planes being out of focus. As discussed elsewhere herein, such depth cues provide credible perceptions of depth. To produce or enhance VR, AR, and MR experiences, display systems can use biometric information to enhance those experiences.

Example Wearable Display System

FIG. 9 illustrates an example of a wearable display system 900 that can be used to present a VR, AR, or MR experience to a display system wearer or viewer 904. The wearable display system 900 may be programmed to perform any of the applications or embodiments described herein. The display system 900 includes a display 908, and various mechanical and electronic modules and systems to support the functioning of the display 908. The display 908 may be coupled to a frame 912, which is wearable by a display system user, wearer, or viewer 904 and which is configured to position the display 908 in front of the eyes of the wearer 904. The display 908 may be a light field display. In some embodiments, a speaker 916 is coupled to the frame 912 and positioned adjacent the ear canal of the user. In some embodiments, another speaker, not shown, is positioned adjacent the other ear canal of the user to provide for stereo/shapeable sound control. The display 908 is operatively coupled 920, such as by a wired lead or wireless connectivity, to a local data processing module 924 which may be mounted in a variety of configurations, such as fixedly attached to the frame 912, fixedly attached to a helmet or hat worn by the user, embedded in headphones, or otherwise removably attached to the user 904 (e.g., in a backpack-style configuration, in a belt-coupling style configuration).

The frame 912 can have one or more cameras attached or mounted to the frame 912 to obtain images of the wearer's eye(s). In one embodiment, the camera(s) may be mounted to the frame 912 in front of a wearer's eye so that the eye can be imaged directly. In other embodiments, the camera can be mounted along a stem of the frame 912 (e.g., near the wearer's ear). In such embodiments, the display 908 may be coated with a material that reflects light from the wearer's eye back toward the camera. The light may be infrared light, since iris features are prominent in infrared images.

The local processing and data module 924 may comprise a hardware processor, as well as non-transitory digital memory, such as non-volatile memory (e.g., flash memory), both of which may be utilized to assist in the processing, caching, and storage of data. The data may include data (a) captured from sensors (which may be, e.g., operatively coupled to the frame 912 or otherwise attached to the user 904), such as image capture devices (such as cameras), microphones, inertial measurement units, accelerometers, compasses, GPS units, radio devices, and/or gyros; and/or (b) acquired and/or processed using remote processing module 928 and/or remote data repository 932, possibly for passage to the display 908 after such processing or retrieval. The local processing and data module 924 may be operatively coupled to the remote processing module 928 and remote data repository 932 by communication links 936 and/or 940, such as via wired or wireless communication links, such that these remote modules 928, 932 are available as resources to the local processing and data module 924. The image capture device(s) can be used to capture the eye images used in the eye image processing procedures. In addition, the remote processing module 928 and remote data repository 932 may be operatively coupled to each other.

In some embodiments, the remote processing module 928 may comprise one or more processors configured to analyze and process data and/or image information such as video information captured by an image capture device. The video data may be stored locally in the local processing and data module 924 and/or in the remote data repository 932. In some embodiments, the remote data repository 932 may comprise a digital data storage facility, which may be available through the internet or other networking configuration in a “cloud” resource configuration. In some embodiments, all data is stored and all computations are performed in the local processing and data module 924, allowing fully autonomous use from a remote module.

In some implementations, the local processing and data module 924 and/or the remote processing module 928 are programmed to perform embodiments of systems and methods as described herein. The image capture device can capture video for a particular application (e.g., video of the wearer's eye for an eye-tracking application or video of a wearer's hand or finger for a gesture identification application). The video can be analyzed by one or both of the processing modules 924, 928. In some cases, off-loading at least some of the iris code generation to a remote processing module (e.g., in the “cloud”) may improve efficiency or speed of the computations. The parameters of the systems and methods disclosed herein can be stored in data modules 924 and/or 928.

The results of the analysis can be used by one or both of the processing modules 924, 928 for additional operations or processing. For example, in various applications, biometric identification, eye-tracking, recognition, or classification of gestures, objects, poses, etc. may be used by the wearable display system 900. For example, the wearable display system 900 may analyze video captured of a hand of the wearer 904 and recognize a gesture by the wearer's hand (e.g., picking up a real or virtual object, signaling assent or dissent (e.g., “thumbs up”, or “thumbs down”), etc.), and the wearable display system.

In some embodiments, the local processing module 924, the remote processing module 928, and a system on the cloud can perform some or all of the methods disclosed herein. For example, the remote processing module 928 or the system on the cloud can perform the method 600 describe above with reference to FIG. 6 to render a representation of a virtual user interface (UI) device (e.g., a button) onto an image of a pointer (e.g., a stylus) and use the image with the representation of the virtual UI device to train a neural network (NN) for determining a UI event. As another example, the local processing module 924 can perform the method 700 described above with reference to FIG. 7. The local processing module 924 can receive the NN from the remote processing module 928 or the system on the cloud. The local processing module 924 can use the NN to determine a UI event with respect to a pointer in an image and a virtual UI device associated with the image.

The human visual system is complicated and providing a realistic perception of depth is challenging. Without being limited by theory, it is believed that viewers of an object may perceive the object as being three-dimensional due to a combination of vergence and accommodation. Vergence movements (e.g., rolling movements of the pupils toward or away from each other to converge the lines of sight of the eyes to fixate upon an object) of the two eyes relative to each other are closely associated with focusing (or “accommodation”) of the lenses of the eyes. Under normal conditions, changing the focus of the lenses of the eyes, or accommodating the eyes, to change focus from one object to another object at a different distance will automatically cause a matching change in vergence to the same distance, under a relationship known as the “accommodation-vergence reflex.” Likewise, a change in vergence will trigger a matching change in accommodation, under normal conditions. Display systems that provide a better match between accommodation and vergence may form more realistic or comfortable simulations of three-dimensional imagery.

FIG. 10 illustrates aspects of an approach for simulating three-dimensional imagery using multiple depth planes. With reference to FIG. 10, objects at various distances from eyes 1002 and 1004 on the z-axis are accommodated by the eyes 1002 and 1004 so that those objects are in focus. The eyes 1002 and 1004 assume particular accommodated states to bring into focus objects at different distances along the z-axis. Consequently, a particular accommodated state may be said to be associated with a particular one of depth planes 1006, with an associated focal distance, such that objects or parts of objects in a particular depth plane are in focus when the eye is in the accommodated state for that depth plane. In some embodiments, three-dimensional imagery may be simulated by providing different presentations of an image for each of the eyes 1002 and 1004, and also by providing different presentations of the image corresponding to each of the depth planes. While shown as being separate for clarity of illustration, it will be appreciated that the fields of view of the eyes 1002 and 1004 may overlap, for example, as distance along the z-axis increases. In addition, while shown as flat for ease of illustration, it will be appreciated that the contours of a depth plane may be curved in physical space, such that all features in a depth plane are in focus with the eye in a particular accommodated state. Without being limited by theory, it is believed that the human eye typically can interpret a finite number of depth planes to provide depth perception. Consequently, a highly believable simulation of perceived depth may be achieved by providing, to the eye, different presentations of an image corresponding to each of these limited number of depth planes.

Example Waveguide Stack Assembly

FIG. 11 illustrates an example of a waveguide stack for outputting image information to a user. A display system 1100 includes a stack of waveguides, or stacked waveguide assembly 1105 that may be utilized to provide three-dimensional perception to the eye 1110 or brain using a plurality of waveguides 1120, 1122, 1124, 1126, 1128. In some embodiments, the display system 1100 may correspond to system 900 of FIG. 9, with FIG. 11 schematically showing some parts of that system 900 in greater detail. For example, in some embodiments, the waveguide assembly 1105 may be integrated into the display 908 of FIG. 9.

With continued reference to FIG. 11, the waveguide assembly 1105 may also include a plurality of features 1130, 1132, 1134, 1136 between the waveguides. In some embodiments, the features 1130, 1132, 1134, 1136 may be lenses. In some embodiments, the features 1130, 1132, 1134, 1136 may not be lenses. Rather, they may be spacers (e.g., cladding layers and/or structures for forming air gaps).

The waveguides 1120, 1122, 1124, 1126, 1128 and/or the plurality of lenses 1130, 1132, 1134, 1136 may be configured to send image information to the eye with various levels of wavefront curvature or light ray divergence. Each waveguide level may be associated with a particular depth plane and may be configured to output image information corresponding to that depth plane. Image injection devices 1140, 1142, 1144, 1146, 1148 may be utilized to inject image information into the waveguides 1120, 1122, 1124, 1126, 1128, each of which may be configured to distribute incoming light across each respective waveguide, for output toward the eye 1110. Light exits an output surface of the image injection devices 1140, 1142, 1144, 1146, 1148 and is injected into a corresponding input edge of the waveguides 1120, 1122, 1124, 1126, 1128. In some embodiments, a single beam of light (e.g., a collimated beam) may be injected into each waveguide to output an entire field of cloned collimated beams that are directed toward the eye 1110 at particular angles (and amounts of divergence) corresponding to the depth plane associated with a particular waveguide.

In some embodiments, the image injection devices 1140, 1142, 1144, 1146, 1142 are discrete displays that each produce image information for injection into a corresponding waveguide 1120, 1122, 1124, 1126, 1128, respectively. In some other embodiments, the image injection devices 1140, 1142, 1146, 1146, 1148 are the output ends of a single multiplexed display which may, for example, pipe image information via one or more optical conduits (such as fiber optic cables) to each of the image injection devices 1140, 1142, 1144, 1146, 1148.

A controller 1150 controls the operation of the stacked waveguide assembly 1105 and the image injection devices 1140, 1142, 1144, 1146, 1148. In some embodiments, the controller 1150 includes programming (e.g., instructions in a non-transitory computer-readable medium) that regulates the timing and provision of image information to the waveguides 1120, 1122, 1124, 1126, 1128. In some embodiments, the controller 1150 may be a single integral device, or a distributed system connected by wired or wireless communication channels. The controller 1150 may be part of the processing modules 924 or 928 (illustrated in FIG. 9) in some embodiments. In some embodiments, the controller may be in communication with an inward-facing imaging system 1152 (e.g., a digital camera), an outward-facing imaging system 1154 (e.g., a digital camera), and/or a user input device 116. The inward-facing imaging system 1152 (e.g., a digital camera) can be used to capture images of the eye 1110 to, for example, determine the size and/or orientation of the pupil of the eye 1110. The outward-facing imaging system 1154 can be used to image a portion of the world 1158. The user can input commands to the controller 1150 via the user input device 1166 to interact with the display system 1100.

The waveguides 1120, 1122, 1124, 1126, 1128 may be configured to propagate light within each respective waveguide by total internal reflection (TIR). The waveguides 1120, 1122, 1124, 1126, 1128 may each be planar or have another shape (e.g., curved), with major top and bottom surfaces and edges extending between those major top and bottom surfaces. In the illustrated configuration, the waveguides 1120, 1122, 1124, 1126, 1128 may each include light extracting optical elements 1160, 1162, 1164, 1166, 1168 that are configured to extract light out of a waveguide by redirecting the light, propagating within each respective waveguide, out of the waveguide to output image information to the eye 1110. Extracted light may also be referred to as outcoupled light, and light extracting optical elements may also be referred to as outcoupling optical elements. An extracted beam of light is outputted by the waveguide at locations at which the light propagating in the waveguide strikes a light redirecting element. The light extracting optical elements (1160, 1162, 1164, 1166, 1168 may, for example, be reflective and/or diffractive optical features. While illustrated disposed at the bottom major surfaces of the waveguides 1120, 1122, 1124, 1126, 1128 for ease of description and drawing clarity, in some embodiments, the light extracting optical elements 1160, 1162, 1164, 1166, 1168 may be disposed at the top and/or bottom major surfaces, and/or may be disposed directly in the volume of the waveguides 1120, 1122, 1124, 1126, 1128. In some embodiments, the light extracting optical elements 1160, 1162, 1164, 1166, 1168 may be formed in a layer of material that is attached to a transparent substrate to form the waveguides 1120, 1122, 1124, 1126, 1128. In some other embodiments, the waveguides 1120, 1122, 1124, 1126, 1128 may be a monolithic piece of material and the light extracting optical elements 1160, 1162, 1164, 1166, 1168 may be formed on a surface and/or in the interior of that piece of material.

With continued reference to FIG. 11, as discussed herein, each waveguide 1120, 1122, 1124, 1126, 1128 is configured to output light to form an image corresponding to a particular depth plane. For example, the waveguide 1120 nearest the eye may be configured to deliver collimated light, as injected into such waveguide 1120, to the eye 1110. The collimated light may be representative of the optical infinity focal plane. The next waveguide up 1122 may be configured to send out collimated light which passes through the first lens 1130 (e.g., a negative lens) before it can reach the eye 1110. First lens 1130 may be configured to create a slight convex wavefront curvature so that the eye/brain interprets light coming from that next waveguide up 1122 as coming from a first focal plane closer inward toward the eye 1110 from optical infinity. Similarly, the third up waveguide 1124 passes its output light through both the first lens 1130 and second lens 1132 before reaching the eye 1110. The combined optical power of the first and second lenses 1130 and 1132 may be configured to create another incremental amount of wavefront curvature so that the eye/brain interprets light coming from the third waveguide 1124 as coming from a second focal plane that is even closer inward toward the person from optical infinity than is light from the next waveguide up 1122.

The other waveguide layers (e.g., waveguides 1126, 1128) and lenses (e.g., lenses 1134, 1136) are similarly configured, with the highest waveguide 1128 in the stack sending its output through all of the lenses between it and the eye for an aggregate focal power representative of the closest focal plane to the person. To compensate for the stack of lenses 1130, 1132, 1134, 1136 when viewing/interpreting light coming from the world 1158 on the other side of the stacked waveguide assembly 1105, a compensating lens layer 1138 may be disposed at the top of the stack to compensate for the aggregate power of the lens stack 1130, 1132, 1134, 1136 below. Such a configuration provides as many perceived focal planes as there are available waveguide/lens pairings. Both the light extracting optical elements 1160, 1162, 1164, 1166, 1168 of the waveguides 1120, 1122, 1124, 1126, 1128 and the focusing aspects of the lenses 1130, 1132, 1134, 1136 may be static (e.g., not dynamic or electro-active). In some alternative embodiments, either or both may be dynamic using electro-active features.

With continued reference to FIG. 11, the light extracting optical elements 1160, 1162, 1164, 1166, 1168 may be configured to both redirect light out of their respective waveguides and to output this light with the appropriate amount of divergence or collimation for a particular depth plane associated with the waveguide. As a result, waveguides having different associated depth planes may have different configurations of light extracting optical elements, which output light with a different amount of divergence depending on the associated depth plane. In some embodiments, as discussed herein, the light extracting optical elements 1160, 1162, 1164, 1166, 1168 may be volumetric or surface features, which may be configured to output light at specific angles. For example, the light extracting optical elements 1160, 1162, 1164, 1166, 1168 may be volume holograms, surface holograms, and/or diffraction gratings. Light extracting optical elements, such as diffraction gratings, are described in U.S. Patent Publication No. 2015/0178939, published Jun. 25, 2015, which is hereby incorporated by reference herein in its entirety. In some embodiments, the features 1130, 1132, 1134, 1136, 1138 may not be lenses. Rather, they may simply be spacers (e.g., cladding layers and/or structures for forming air gaps).

In some embodiments, the light extracting optical elements 1160, 1162, 1164, 1166, 1168 are diffractive features that form a diffraction pattern, or “diffractive optical element” (also referred to herein as a “DOE”). Preferably, the DOEs have a relatively low diffraction efficiency so that only a portion of the light of the beam is deflected away toward the eye 1110 with each intersection of the DOE, while the rest continues to move through a waveguide via total internal reflection. The light carrying the image information is thus divided into a number of related exit beams that exit the waveguide at a multiplicity of locations and the result is a fairly uniform pattern of exit emission toward the eye 1110 for this particular collimated beam bouncing around within a waveguide.

In some embodiments, one or more DOEs may be switchable between “on” states in which they actively diffract, and “off” states in which they do not significantly diffract. For instance, a switchable DOE may comprise a layer of polymer dispersed liquid crystal, in which microdroplets comprise a diffraction pattern in a host medium, and the refractive index of the microdroplets can be switched to substantially match the refractive index of the host material (in which case the pattern does not appreciably diffract incident light) or the microdroplet can be switched to an index that does not match that of the host medium (in which case the pattern actively diffracts incident light).

In some embodiments, the number and distribution of depth planes and/or depth of field may be varied dynamically based on the pupil sizes and/or orientations of the eyes of the viewer. In some embodiments, an inward-facing imaging system 1152 (e.g., a digital camera) may be used to capture images of the eye 1110 to determine the size and/or orientation of the pupil of the eye 1110. In some embodiments, the inward-facing imaging system 1152 may be attached to the frame 912 (as illustrated in FIG. 9) and may be in electrical communication with the processing modules 924 and/or 928, which may process image information from the inward-facing imaging system 1152) to determine, e.g., the pupil diameters, or orientations of the eyes of the user 904.

In some embodiments, the inward-facing imaging system 1152 (e.g., a digital camera) can observe the movements of the user, such as the eye movements and the facial movements. The inward-facing imaging system 1152 may be used to capture images of the eye 1110 to determine the size and/or orientation of the pupil of the eye 1110. The inward-facing imaging system 1152 can be used to obtain images for use in determining the direction the user is looking (e.g., eye pose) or for biometric identification of the user (e.g., via iris identification). The images obtained by the inward-facing imaging system 1152 may be analyzed to determine the user's eye pose and/or mood, which can be used by the display system 1100 to decide which audio or visual content should be presented to the user. The display system 1100 may also determine head pose (e.g., head position or head orientation) using sensors such as inertial measurement units (IMUs), accelerometers, gyroscopes, etc. The head's pose may be used alone or in combination with eye pose to interact with stem tracks and/or present audio content.

In some embodiments, one camera may be utilized for each eye, to separately determine the pupil size and/or orientation of each eye, thereby allowing the presentation of image information to each eye to be dynamically tailored to that eye. In some embodiments, at least one camera may be utilized for each eye, to separately determine the pupil size and/or eye pose of each eye independently, thereby allowing the presentation of image information to each eye to be dynamically tailored to that eye. In some other embodiments, the pupil diameter and/or orientation of only a single eye 1110 (e.g., using only a single camera per pair of eyes) is determined and assumed to be similar for both eyes of the viewer 904.

For example, depth of field may change inversely with a viewer's pupil size. As a result, as the sizes of the pupils of the viewer's eyes decrease, the depth of field increases such that one plane not discernible because the location of that plane is beyond the depth of focus of the eye may become discernible and appear more in focus with reduction of pupil size and commensurate increase in depth of field. Likewise, the number of spaced apart depth planes used to present different images to the viewer may be decreased with decreased pupil size. For example, a viewer may not be able to clearly perceive the details of both a first depth plane and a second depth plane at one pupil size without adjusting the accommodation of the eye away from one depth plane and to the other depth plane. These two depth planes may, however, be sufficiently in focus at the same time to the user at another pupil size without changing accommodation.

In some embodiments, the display system may vary the number of waveguides receiving image information based upon determinations of pupil size and/or orientation, or upon receiving electrical signals indicative of particular pupil sizes and/or orientations. For example, if the user's eyes are unable to distinguish between two depth planes associated with two waveguides, then the controller 1150 may be configured or programmed to cease providing image information to one of these waveguides. Advantageously, this may reduce the processing burden on the system, thereby increasing the responsiveness of the system. In embodiments in which the DOEs for a waveguide are switchable between on and off states, the DOEs may be switched to the off state when the waveguide does receive image information.

In some embodiments, it may be desirable to have an exit beam meet the condition of having a diameter that is less than the diameter of the eye of a viewer. However, meeting this condition may be challenging in view of the variability in size of the viewer's pupils. In some embodiments, this condition is met over a wide range of pupil sizes by varying the size of the exit beam in response to determinations of the size of the viewer's pupil. For example, as the pupil size decreases, the size of the exit beam may also decrease. In some embodiments, the exit beam size may be varied using a variable aperture.

The display system 1100 can include an outward-facing imaging system 1154 (e.g., a digital camera) that images a portion of the world 1158. This portion of the world 1158 may be referred to as the field of view (FOV) and the imaging system 1154 is sometimes referred to as an FOV camera. The entire region available for viewing or imaging by a viewer 904 may be referred to as the field of regard (FOR). The FOR may include 4π steradians of solid angle surrounding the display system 1100. In some implementations of the display system 1100, the FOR may include substantially all of the solid angle around a user 904 of the display system 1100, because the user 904 can move their head and eyes to look at objects surrounding the user (in front, in back, above, below, or on the sides of the user). Images obtained from the outward-facing imaging system 1154 can be used to track gestures made by the user (e.g., hand or finger gestures), detect objects in the world 1158 in front of the user, and so forth.

The object recognitions or detections may be performed using a variety of computer vision techniques. For example, the wearable system can analyze the images acquired by the outward-facing imaging system 1154 (described with reference to FIG. 11) to perform scene reconstruction, event detection, video tracking, object recognition (e.g., persons or documents), gesture detection or recognition, object pose estimation, facial recognition (e.g., from a person in the environment or an image on a document), learning, indexing, motion estimation, or image analysis (e.g., identifying indicia within documents such as photos, signatures, identification information, travel information, etc.), and so forth. One or more computer vision algorithms may be used to perform these tasks. The local processing and data module 924 and/or the remote processing module 928 and remote data repository 932 can be programmed with object recognizers that crawl the images and perform the computer vision algorithms on the images. Non-limiting examples of computer vision algorithms include: Scale-invariant feature transform (SIFT), speeded up robust features (SURF), oriented FAST and rotated BRIEF (ORB), binary robust invariant scalable keypoints (BRISK), fast retina keypoint (FREAK), Viola-Jones algorithm, Eigenfaces approach, Lucas-Kanade algorithm, Horn-Schunk algorithm, Mean-shift algorithm, visual simultaneous location and mapping (vSLAM) techniques, a sequential Bayesian estimator (e.g., Kalman filter, extended Kalman filter, etc.), bundle adjustment, Adaptive thresholding (and other thresholding techniques), Iterative Closest Point (ICP), Semi Global Matching (SGM), Semi Global Block Matching (SGBM), Feature Point Histograms, various machine learning algorithms (such as e.g., support vector machine, k-nearest neighbors algorithm, Naive Bayes, neural network (including convolutional or deep neural networks), or other supervised/unsupervised models, etc.), and so forth.

The object recognitions or detections can additionally or alternatively be performed by a variety of machine learning algorithms. Once trained, the machine learning algorithm can be stored by the ARD (e.g., the local processing and data module 924 and/or the remote processing module 928 and remote data repository 932). Some examples of machine learning algorithms can include supervised or non-supervised machine learning algorithms, including regression algorithms (such as, for example, Ordinary Least Squares Regression), instance-based algorithms (such as, for example, Learning Vector Quantization), decision tree algorithms (such as, for example, classification and regression trees), Bayesian algorithms (such as, for example, Naive Bayes), clustering algorithms (such as, for example, k-means clustering), association rule learning algorithms (such as, for example, a-priori algorithms), artificial neural network algorithms (such as, for example, Perceptron), deep learning algorithms (such as, for example, Deep Boltzmann Machine, or deep neural network), dimensionality reduction algorithms (such as, for example, Principal Component Analysis), ensemble algorithms (such as, for example, Stacked Generalization), and/or other machine learning algorithms. In some embodiments, individual models can be customized for individual data sets. For example, the wearable device can generate or store a base model. The base model may be used as a starting point to generate additional models specific to a data type (e.g., a particular user in the telepresence session), a data set (e.g., a set of additional images obtained of the user in the telepresence session), conditional situations, or other variations. In some embodiments, the wearable HMD can be configured to utilize a plurality of techniques to generate models for analysis of the aggregated data. Other techniques may include using pre-defined thresholds or data values.

The display system 1100 can include a user input device 1156 by which the user can input commands to the controller 1150 to interact with the display system 400. For example, the user input device 1156 can include a trackpad, a touchscreen, a joystick, a multiple degree-of-freedom (DOF) controller, a capacitive sensing device, a game controller, a keyboard, a mouse, a directional pad (D-pad), a wand, a haptic device, a totem (e.g., functioning as a virtual user input device), and so forth. In some cases, the user may use a finger (e.g., a thumb) to press or swipe on a touch-sensitive input device to provide input to the display system 1100 (e.g., to provide user input to a user interface provided by the display system 1100). The user input device 1156 may be held by the user's hand during the use of the display system 1100. The user input device 1156 can be in wired or wireless communication with the display system 1100.

FIG. 12 shows an example of exit beams outputted by a waveguide. One waveguide is illustrated, but it will be appreciated that other waveguides in the waveguide assembly 1105 may function similarly, where the waveguide assembly 1105 includes multiple waveguides. Light 1205 is injected into the waveguide 1120 at the input edge 1210 of the waveguide 1120 and propagates within the waveguide 1120 by total internal reflection (TIR). At points where the light 1205 impinges on the diffractive optical element (DOE) 1160, a portion of the light exits the waveguide as exit beams 1215. The exit beams 1215 are illustrated as substantially parallel but they may also be redirected to propagate to the eye 1110 at an angle (e.g., forming divergent exit beams), depending on the depth plane associated with the waveguide 1120. It will be appreciated that substantially parallel exit beams may be indicative of a waveguide with light extracting optical elements that outcouple light to form images that appear to be set on a depth plane at a large distance (e.g., optical infinity) from the eye 1110. Other waveguides or other sets of light extracting optical elements may output an exit beam pattern that is more divergent, which would require the eye 1110 to accommodate to a closer distance to bring it into focus on the retina and would be interpreted by the brain as light from a distance closer to the eye 1110 than optical infinity.

FIG. 13 shows another example of the display system 1100 including a waveguide apparatus, an optical coupler subsystem to optically couple light to or from the waveguide apparatus, and a control subsystem. The display system 1100 can be used to generate a multi-focal volumetric, image, or light field. The display system 1100 can include one or more primary planar waveguides 1304 (only one is shown in FIG. 13) and one or more DOEs 1308 associated with each of at least some of the primary waveguides 1304. The planar waveguides 1304 can be similar to the waveguides 1120, 1122, 1124, 1126, 1128 discussed with reference to FIG. 11. The optical system may employ a distribution waveguide apparatus, to relay light along a first axis (vertical or Y-axis in view of FIG. 13), and expand the light's effective exit pupil along the first axis (e.g., Y-axis). The distribution waveguide apparatus, may, for example include a distribution planar waveguide 1312 and at least one DOE 1316 (illustrated by double dash-dot line) associated with the distribution planar waveguide 1312. The distribution planar waveguide 1312 may be similar or identical in at least some respects to the primary planar waveguide 1304, having a different orientation therefrom. Likewise, the at least one DOE 1316 may be similar or identical in at least some respects to the DOE 1308. For example, the distribution planar waveguide 1312 and/or DOE 1316 may be comprised of the same materials as the primary planar waveguide 1304 and/or DOE 1308, respectively. The optical system shown in FIG. 13 can be integrated into the wearable display system 900 shown in FIG. 9.

The relayed and exit-pupil expanded light is optically coupled from the distribution waveguide apparatus into the one or more primary planar waveguides 1304. The primary planar waveguide 1304 relays light along a second axis, preferably orthogonal to first axis, (e.g., horizontal or X-axis in view of FIG. 13). Notably, the second axis can be a non-orthogonal axis to the first axis. The primary planar waveguide 1304 expands the light's effective exit path along that second axis (e.g., X-axis). For example, the distribution planar waveguide 1312 can relay and expand light along the vertical or Y-axis, and pass that light to the primary planar waveguide 1304 which relays and expands light along the horizontal or X-axis.

The display system 1100 may include one or more sources of colored light (e.g., red, green, and blue laser light) 1320 which may be optically coupled into a proximal end of a single mode optical fiber 1324. A distal end of the optical fiber 1324 may be threaded or received through a hollow tube 1328 of piezoelectric material. The distal end protrudes from the tube 1328 as fixed-free flexible cantilever 1332. The piezoelectric tube 1328 can be associated with four quadrant electrodes (not illustrated). The electrodes may, for example, be plated on the outside, outer surface or outer periphery or diameter of the tube 1328. A core electrode (not illustrated) is also located in a core, center, inner periphery or inner diameter of the tube 1328.

Drive electronics 1336, for example electrically coupled via wires 1340, drive opposing pairs of electrodes to bend the piezoelectric tube 1328 in two axes independently. The protruding distal tip of the optical fiber 1324 has mechanical modes of resonance. The frequencies of resonance can depend upon a diameter, length, and material properties of the optical fiber 1324. By vibrating the piezoelectric tube 1328 near a first mode of mechanical resonance of the fiber cantilever 1332, the fiber cantilever 1332 is caused to vibrate, and can sweep through large deflections.

By stimulating resonant vibration in two axes, the tip of the fiber cantilever 1332 is scanned biaxially in an area filling two dimensional (2-D) scan. By modulating an intensity of light source(s) 1320 in synchrony with the scan of the fiber cantilever 1332, light emerging from the fiber cantilever 1332 forms an image. Descriptions of such a set up are provided in U.S. Patent Publication No. 2014/0003762, which is incorporated by reference herein in its entirety.

A component 1344 of an optical coupler subsystem collimates the light emerging from the scanning fiber cantilever 1332. The collimated light is reflected by mirrored surface 1348 into the narrow distribution planar waveguide 1312 which contains the at least one diffractive optical element (DOE) 1316. The collimated light propagates vertically (relative to the view of FIG. 13) along the distribution planar waveguide 1312 by total internal reflection, and in doing so repeatedly intersects with the DOE 1316. The DOE 1316 preferably has a low diffraction efficiency. This causes a fraction (e.g., 10%) of the light to be diffracted toward an edge of the larger primary planar waveguide 1304 at each point of intersection with the DOE 1316, and a fraction of the light to continue on its original trajectory down the length of the distribution planar waveguide 1312 via TIR.

At each point of intersection with the DOE 1316, additional light is diffracted toward the entrance of the primary waveguide 1312. By dividing the incoming light into multiple outcoupled sets, the exit pupil of the light is expanded vertically by the DOE 1316 in the distribution planar waveguide 1312. This vertically expanded light coupled out of distribution planar waveguide 1312 enters the edge of the primary planar waveguide 1304.

Light entering primary waveguide 1304 propagates horizontally (relative to the view of FIG. 13) along the primary waveguide 1304 via TIR. As the light intersects with DOE 1308 at multiple points as it propagates horizontally along at least a portion of the length of the primary waveguide 1304 via TIR. The DOE 1308 may advantageously be designed or configured to have a phase profile that is a summation of a linear diffraction pattern and a radially symmetric diffractive pattern, to produce both deflection and focusing of the light. The DOE 1308 may advantageously have a low diffraction efficiency (e.g., 10%), so that only a portion of the light of the beam is deflected toward the eye of the view with each intersection of the DOE 1308 while the rest of the light continues to propagate through the waveguide 1304 via TIR.

At each point of intersection between the propagating light and the DOE 1308, a fraction of the light is diffracted toward the adjacent face of the primary waveguide 1304 allowing the light to escape the TIR, and emerge from the face of the primary waveguide 1304. In some embodiments, the radially symmetric diffraction pattern of the DOE 1308 additionally imparts a focus level to the diffracted light, both shaping the light wavefront (e.g., imparting a curvature) of the individual beam as well as steering the beam at an angle that matches the designed focus level.

Accordingly, these different pathways can cause the light to be coupled out of the primary planar waveguide 1304 by a multiplicity of DOEs 1308 at different angles, focus levels, and/or yielding different fill patterns at the exit pupil. Different fill patterns at the exit pupil can be beneficially used to create a light field display with multiple depth planes. Each layer in the waveguide assembly or a set of layers (e.g., 3 layers) in the stack may be employed to generate a respective color (e.g., red, blue, green). Thus, for example, a first set of three adjacent layers may be employed to respectively produce red, blue and green light at a first focal depth. A second set of three adjacent layers may be employed to respectively produce red, blue and green light at a second focal depth. Multiple sets may be employed to generate a full 3D or 4D color image light field with various focal depths.

Additional Aspects

Examples of a Wearable Display System Using a Trained Neural Network to Determine a UI Event

In a 1st aspect, a wearable display system is disclosed. The wearable display system comprises: an image capture device configured to capture an image comprising a pointer; non-transitory computer-readable storage medium configured to store: the image, a virtual user interface (UI) device associated with the image at an image location on the image, and a neural network for determining a UI event trained using: a training image associated with a training virtual UI device, the training image comprising a representation of the training virtual UI device and a training pointer, and a training UI event with respect to the training virtual UI device and the training pointer in the training image; a display configured to display the virtual UI device at a display location when the image is captured by the image capture device, wherein the image location is related to the display location; and a hardware processor in communication with the image capture device, the display, and the non-transitory computer-readable storage medium, the processor programmed by the executable instructions to: receive the image from the image capture device; render a representation of the virtual UI device onto the image at the image location; and determine, using the neural network, a UI event with respect to the pointer in the image and the virtual UI device associated with the image. The processor can generate virtual content based on the UI event, and cause the display to present the virtual content to the wearer of the wearable display system.

In a 2nd aspect, the wearable display system of aspect 1, wherein the processor is further programmed to generate virtual content (or virtual image information) based on the UI event; and cause the display to provide the virtual content to the wearer of the wearable display system.

In a 3rd aspect, the wearable display system of any one of aspects 1-2, wherein the processor is further programmed to perform an action (e.g., activation of another device, such as a TV, a car, etc., or connecting with another device, such as a phone, a mobile device, an ARD, etc.) based on the UI event.

In a 4th aspect, the wearable display system of any one of aspects 1-3, wherein the representation of the virtual UI device comprises a plurality of shapes of high contrasts.

In a 5th aspect, the wearable display system of aspect 4, wherein the plurality of shapes of high contrasts comprises a plurality of concentric shapes of high contrast.

In a 6th aspect, the wearable display system of any one of aspects 4-5, wherein the centers of gravity of shapes of the plurality of shapes are within a threshold distance of each other.

In a 7th aspect, the wearable display system of aspect 6, wherein the threshold distance is 0.

In a 8th aspect, the wearable display system of any one of aspects 4-7, wherein a first shape of the plurality of shapes is associated with a first color, wherein a second shape of the plurality of shapes is associated with a second color, and wherein the first shape is adjacent to the second shape.

In a 9th aspect, the wearable display system of aspect 8, wherein the first color is black, and wherein the second color is white.

In a 10th aspect, the wearable display system of any one of aspects 8-9, wherein the second shape is partially transparent.

In a 11th aspect, the wearable display system of aspect 10, wherein a first region of the second shape is associated with a first transparency value, and wherein a second region of the second shape is associated with a second transparency value.

In a 12th aspect, the wearable display system of aspect 11, wherein the second region of the second shape is further away from the first region of the second shape, and wherein the second transparency value is smaller than the first transparency value.

In a 13th aspect, the wearable display system of any one of aspects 8-12, wherein the second shape is within the first shape.

In a 14th aspect, the wearable display system of any one of aspects 8-13, wherein a third shape of the plurality of shapes is associated with a third color, and wherein the first shape is adjacent to the first shape.

In a 15th aspect, the wearable display system of aspect 14, wherein third color is white.

In a 16th aspect, the wearable display system of any one of aspects 14-15, wherein first shape is within the third shape.

In a 17th aspect, the wearable display system of any one of aspects 1-16, wherein the UI event corresponds to a state of a plurality of states of the virtual UI device.

In a 18th aspect, the wearable display system of aspect 17, wherein the plurality of states comprises activation or non-activation of the virtual UI device.

In a 19th aspect, the wearable display system of any one of aspects 1-18, wherein the virtual UI device is selected from a group comprising of: a button, an updown, a spinner, a picker, a radio button, a radio button list, a checkbox, a picture box, a checkbox list, a dropdown list, a dropdown menu, a selection list, a list box, a combo box, a textbox, a slider, a link, a keyboard key, a switch, a slider, a touch surface, or a combination thereof.

In a 20th aspect, the wearable display system of any one of aspects 1-19, wherein the UI pointer comprises an object associated with a user or a part of the user.

In a 21st aspect, the wearable display system of aspect 20, wherein the object associated with the user comprises a pointer, a pen, a pencil, a marker, a highlighter, or a combination thereof, and wherein the part of the user comprises a finger of the user.

Examples of a Computer System for Generating Training Data for Training a Machine Learning Model (e.g., a Neural Network)

In a 22nd aspect, a system for training a neural network for determining a user interface event is disclosed. The system comprises: computer-readable memory storing executable instructions; and one or more processors programmed by the executable instructions to at least: receive a plurality of images, wherein an image of the plurality of images comprises a pointer of a plurality of pointers, wherein the image is associated with a virtual user interface (UI) device of a plurality of virtual UI devices at an image location on the image, and wherein the image is associated with a UI event of a plurality of UI events with respect to the virtual UI device and the pointer in the image; render a representation of the virtual UI device onto the image at the image location to generate a training image; and generate a training set comprising input data and corresponding target output data, wherein the input data comprises the training image, and wherein the corresponding target output data comprises the UI event.

In a 23rd aspect, the system of aspect 22, wherein the one or more processors is further programmed to train a machine learning model (e.g., a neural network), for determining a UI event associated with the virtual UI device and the pointer, using the training set.

In a 24th aspect, the system of any one of aspects 22-23, wherein the representation of the virtual UI device comprises a plurality of shapes of high contrasts.

In a 25th aspect, the system of aspect 24, wherein the plurality of shapes of high contrasts comprises a plurality of concentric shapes of high contrast.

In a 26th aspect, the system of any one of aspects 24-25, wherein the centers of gravity of shapes of the plurality of shapes are within a threshold distance of each other.

In a 27th aspect, the system of aspect 26, wherein the threshold distance is 0.

In a 28th aspect, the system of any one of aspects 24-27, wherein a first shape of the plurality of shapes is associated with a first color, wherein a second shape of the plurality of shapes is associated with a second color, and wherein the first shape is adjacent to the second shape.

In a 29th aspect, the system of aspect 28, wherein the first color is black, and wherein the second color is white.

In a 30th aspect, the system of any one of aspects 28-29, wherein the second shape is partially transparent.

In a 31st aspect, the system of aspect 30, wherein a first region of the second shape is associated with a first transparency value, and wherein a second region of the second shape is associated with a second transparency value.

In a 32nd aspect, the system of aspect 31, wherein the second region of the second shape is further away from the first region of the second shape, and wherein the second transparency value is smaller than the first transparency value.

In a 33rd aspect, the system of any one of aspects 28-32, wherein the second shape is within the first shape.

In a 34th aspect, the system of any one of aspects 28-33, wherein a third shape of the plurality of shapes has a third color, and wherein the first shape is adjacent to the first shape.

In a 35th aspect, the system of aspect 34, wherein third color is white.

In a 36th aspect, the system of any one of aspects 34-35, wherein first shape is within the third shape.

In a 37th aspect, the system of any one of aspects 22-36, wherein the UI event corresponds to a state of a plurality of states of the virtual UI device.

In a 38th aspect, the system of aspect 37, wherein the plurality of states comprises activation or non-activation of the virtual UI device.

In a 39th aspect, the system of any one of aspects 22-38, wherein the plurality of virtual UI devices comprises a button, an updown, a spinner, a picker, a radio button, a radio button list, a checkbox, a picture box, a checkbox list, a dropdown list, a dropdown menu, a selection list, a list box, a combo box, a textbox, a slider, a link, a keyboard key, a switch, a slider, a touch surface, or a combination thereof.

In a 40th aspect, the system of any one of aspects 22-39, wherein the plurality of UI pointers comprises an object associated with a user or a part of the user.

In a 41st aspect, the system of aspect 40, wherein the object associated with the user comprises a pointer, a pen, a pencil, a marker, a highlighter, or a combination thereof, and wherein the part of the user comprises a finger of the user.

Examples of a Method of Using a Trained Neural Network to Determine a UI Event

In a 42nd aspect, a method for using a neural network to determine a UI event is disclosed. The method is under control of a hardware processor and comprises: accessing a neural network for determining a UI event trained using: a training image associated with a training virtual UI device, the training image comprising a representation of the training virtual UI device and a training pointer, and a training UI event with respect to the training virtual UI device and the training pointer in the training image; receiving an image comprising a pointer, wherein a virtual user interface (UI) device is associated with the image at an image location on the image, wherein the virtual UI device is displayed at a display location (e.g., at a display location on an ARD display) when the image is captured (e.g., captured by an image capture device of an ARD), and wherein the image location is related to the display location; receiving the image from the image capture device; rendering a representation of the virtual UI device onto the image at the image location; and determining, using the neural network, a UI event with respect to the pointer in the image and the virtual UI device associated with the image.

In a 43rd aspect, the method of aspect 42, further comprising: generating virtual content (or virtual image information) based on the UI event; and optionally causing the virtual content to be displayed.

In a 44th aspect, the method of any one of aspects 42-43, further comprising: performing an action (e.g., activation of another device, such as a TV, a car, etc., or connecting with another device, such as a phone, a mobile device, an ARD, etc.) based on the UI event.

In a 45th aspect, the method of any one of aspects 42-44, wherein the representation of the virtual UI device comprises a plurality of shapes of high contrasts.

In a 46th aspect, the method of aspect 45, wherein the plurality of shapes of high contrasts comprises a plurality of concentric shapes of high contrast.

In a 47th aspect, the method of any one of aspects 45-46, wherein the centers of gravity of shapes of the plurality of shapes are within a threshold distance of each other.

In a 48th aspect, the method of aspect 47, wherein the threshold distance is 0.

In a 49th aspect, the method of any one of aspects 45-48, wherein a first shape of the plurality of shapes is associated with a first color, wherein a second shape of the plurality of shapes is associated with a second color, and wherein the first shape is adjacent to the second shape.

In a 50th aspect, the method of aspect 49, wherein the first color is black, and wherein the second color is white.

In a 51st aspect, the method of any one of aspects 49-50, wherein the second shape is partially transparent.

In a 52nd aspect, the method of aspect 51, wherein a first region of the second shape is associated with a first transparency value, and wherein a second region of the second shape is associated with a second transparency value.

In a 53rd aspect, the method of aspect 52, wherein the second region of the second shape is further away from the first region of the second shape, and wherein the second transparency value is smaller than the first transparency value.

In a 54th aspect, the method of any one of aspects 49-53, wherein the second shape is within the first shape.

In a 55th aspect, the method of any one of aspects 49-54, wherein a third shape of the plurality of shapes is associated with a third color, and wherein the first shape is adjacent to the first shape.

In a 56th aspect, the method of aspect 55, wherein third color is white.

In a 57th aspect, the method of any one of aspects 55-56, wherein first shape is within the third shape.

In a 58th aspect, the method of any one of aspects 42-57, wherein the UI event corresponds to a state of a plurality of states of the virtual UI device.

In a 59th aspect, the method of aspect 58, wherein the plurality of states comprises activation or non-activation of the virtual UI device.

In a 60th aspect, the method of any one of aspects 42-59, wherein the virtual UI device is selected from a group comprising of: a button, an updown, a spinner, a picker, a radio button, a radio button list, a checkbox, a picture box, a checkbox list, a dropdown list, a dropdown menu, a selection list, a list box, a combo box, a textbox, a slider, a link, a keyboard key, a switch, a slider, a touch surface, or a combination thereof.

In a 61st aspect, the method of any one of aspects 42-60, wherein the UI pointer comprises an object associated with a user or a part of the user.

In a 62nd aspect, the method of aspect 61, wherein the object associated with the user comprises a pointer, a pen, a pencil, a marker, a highlighter, or a combination thereof, and wherein the part of the user comprises a finger of the user.

Examples of a Method for Training a Machine Learning Model (e.g., Neural Network)

In a 63rd aspect, a method for training a neural network for determining a user interface event is disclosed. The method is under control of a hardware processor and comprises: receiving a plurality of images, wherein a first image of the plurality of images comprises a first representation of a pointer of a plurality of pointers, wherein the first image is associated with a first representation of a virtual user interface (UI) device of a plurality of virtual UI devices at a first image location in the first image, and wherein the first image is associated with a UI event of a plurality of UI events with respect to the virtual UI device and the pointer in the first image; rendering a first representation of the virtual UI device onto the first image at the first image location to generate a first training image; generating a training set comprising input data and corresponding target output data, wherein the input data comprises the first training image, and wherein the corresponding target output data comprises the UI event; and training a neural network, for determining a UI event associated with the virtual UI device and the pointer, using the training set.

In a 64th aspect, the method of aspect 63, wherein a second image of the plurality of images comprises a second representation of the pointer, wherein the second image is associated with a second representation of the virtual UI device at a second image location in the second image, and wherein the second image is associated with the UI event.

In a 65th aspect, the method of aspect 64, wherein the first image and the second image form a stereoscopic pair.

In a 66th aspect, the method of aspect 64, wherein the first image and the second image are images of a multiscopic set of images.

In a 67th aspect, the method of any one of aspects 64-66, further comprising: rendering a second representation of the virtual UI device onto the second image at the second image location to generate a second training image, wherein the input data comprises the second training image.

In a 68th aspect, the method of any one of aspects 63-67, wherein the first representation of the virtual UI device comprises a plurality of shapes of high contrasts.

In a 69th aspect, the method of aspect 68, wherein the plurality of shapes of high contrasts comprises a plurality of concentric shapes of high contrast.

In a 70th aspect, the method of any one of aspects 68-69, wherein the centers of gravity of shapes of the plurality of shapes are within a threshold distance of each other.

In a 71st aspect, the method of aspect 70, wherein the threshold distance is 0.

In a 72nd aspect, the method of any one of aspects 68-71, wherein a first shape of the plurality of shapes is associated with a first color, wherein a second shape of the plurality of shapes is associated with a second color, and wherein the first shape is adjacent to the second shape.

In a 73rd aspect, the method of aspect 72, wherein the first color is black, and wherein the second color is white.

In a 74th aspect, the method of any one of aspects 72-73, wherein the second shape is partially transparent.

In a 75th aspect, the method of aspect 74, wherein a first region of the second shape is associated with a first transparency value, and wherein a second region of the second shape is associated with a second transparency value.

In a 76th aspect, the method of aspect 75, wherein the second region of the second shape is further away from the first region of the second shape, and wherein the second transparency value is smaller than the first transparency value.

In a 77th aspect, the method of any one of aspects 75-76, wherein the second shape is within the first shape.

In a 78th aspect, the method of any one of aspects 75-77, wherein a third shape of the concentric shapes has a third color, and wherein the first shape is adjacent to the first shape.

In a 79th aspect, the method of aspect 78, wherein third color is white.

In a 80th aspect, the method of any one of aspects 78-79, wherein first shape is within the third shape.

In a 81st aspect, the method of any one of aspects 63-80, wherein the UI event corresponds to a state of a plurality of states of the virtual UI device.

In a 82nd aspect, the method of aspect 81, wherein the plurality of states comprises activation or non-activation of the virtual UI device.

In a 83rd aspect, the method of any one of aspects 63-82, wherein the plurality of virtual UI devices comprises a button, an updown, a spinner, a picker, a radio button, a radio button list, a checkbox, a picture box, a checkbox list, a dropdown list, a dropdown menu, a selection list, a list box, a combo box, a textbox, a slider, a link, a keyboard key, a switch, a slider, a touch surface, or a combination thereof.

In a 84th aspect, the method of any one of aspects 63-83, wherein the plurality of UI pointers comprises an object associated with a user or a part of the user.

In a 85th aspect, the method of aspect 84, wherein the object associated with the user comprises a pointer, a pen, a pencil, a marker, a highlighter, or a combination thereof, and wherein the part of the user comprises a finger of the user.

ADDITIONAL CONSIDERATIONS

Each of the processes, methods, and algorithms described herein and/or depicted in the attached figures may be embodied in, and fully or partially automated by, code modules executed by one or more physical computing systems, hardware computer processors, application-specific circuitry, and/or electronic hardware configured to execute specific and particular computer instructions. For example, computing systems can include general purpose computers (e.g., servers) programmed with specific computer instructions or special purpose computers, special purpose circuitry, and so forth. A code module may be compiled and linked into an executable program, installed in a dynamic link library, or may be written in an interpreted programming language. In some implementations, particular operations and methods may be performed by circuitry that is specific to a given function.

Further, certain implementations of the functionality of the present disclosure are sufficiently mathematically, computationally, or technically complex that application-specific hardware or one or more physical computing devices (utilizing appropriate specialized executable instructions) may be necessary to perform the functionality, for example, due to the volume or complexity of the calculations involved or to provide results substantially in real-time. For example, a video may include many frames, with each frame having millions of pixels, and specifically programmed computer hardware is necessary to process the video data to provide a desired image processing task or application in a commercially reasonable amount of time. Additionally, training and executing a neural network can be computationally challenging. In some cases, the neural network is executed by one or more graphics processing units (GPUs).

Code modules or any type of data may be stored on any type of non-transitory computer-readable medium, such as physical computer storage including hard drives, solid state memory, random access memory (RAM), read only memory (ROM), optical disc, volatile or non-volatile storage, combinations of the same and/or the like. The methods and modules (or data) may also be transmitted as generated data signals (e.g., as part of a carrier wave or other analog or digital propagated signal) on a variety of computer-readable transmission mediums, including wireless-based and wired/cable-based mediums, and may take a variety of forms (e.g., as part of a single or multiplexed analog signal, or as multiple discrete digital packets or frames). The results of the disclosed processes or process steps may be stored, persistently or otherwise, in any type of non-transitory, tangible computer storage or may be communicated via a computer-readable transmission medium.

Any processes, blocks, states, steps, or functionalities in flow diagrams described herein and/or depicted in the attached figures should be understood as potentially representing code modules, segments, or portions of code which include one or more executable instructions for implementing specific functions (e.g., logical or arithmetical) or steps in the process. The various processes, blocks, states, steps, or functionalities can be combined, rearranged, added to, deleted from, modified, or otherwise changed from the illustrative examples provided herein. In some embodiments, additional or different computing systems or code modules may perform some or all of the functionalities described herein. The methods and processes described herein are also not limited to any particular sequence, and the blocks, steps, or states relating thereto can be performed in other sequences that are appropriate, for example, in serial, in parallel, or in some other manner. Tasks or events may be added to or removed from the disclosed example embodiments. Moreover, the separation of various system components in the implementations described herein is for illustrative purposes and should not be understood as requiring such separation in all implementations. It should be understood that the described program components, methods, and systems can generally be integrated together in a single computer product or packaged into multiple computer products. Many implementation variations are possible.

The processes, methods, and systems may be implemented in a network (or distributed) computing environment. Network environments include enterprise-wide computer networks, intranets, local area networks (LAN), wide area networks (WAN), personal area networks (PAN), cloud computing networks, crowd-sourced computing networks, the Internet, and the World Wide Web. The network may be a wired or a wireless network or any other type of communication network.

The systems and methods of the disclosure each have several innovative aspects, no single one of which is solely responsible or required for the desirable attributes disclosed herein. The various features and processes described herein may be used independently of one another, or may be combined in various ways. All possible combinations and subcombinations are intended to fall within the scope of this disclosure. Various modifications to the implementations described in this disclosure may be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other implementations without departing from the spirit or scope of this disclosure. Thus, the claims are not intended to be limited to the implementations shown herein, but are to be accorded the widest scope consistent with this disclosure, the principles and the novel features disclosed herein.

Certain features that are described in this specification in the context of separate implementations also can be implemented in combination in a single implementation. Conversely, various features that are described in the context of a single implementation also can be implemented in multiple implementations separately or in any suitable subcombination. Moreover, although features may be described above as acting in certain combinations and even initially claimed as such, one or more features from a claimed combination can in some cases be excised from the combination, and the claimed combination may be directed to a subcombination or variation of a subcombination. No single feature or group of features is necessary or indispensable to each and every embodiment.

Conditional language used herein, such as, among others, “can,” “could,” “might,” “may,” “e.g.,” and the like, unless specifically stated otherwise, or otherwise understood within the context as used, is generally intended to convey that certain embodiments include, while other embodiments do not include, certain features, elements and/or steps. Thus, such conditional language is not generally intended to imply that features, elements and/or steps are in any way required for one or more embodiments or that one or more embodiments necessarily include logic for deciding, with or without author input or prompting, whether these features, elements and/or steps are included or are to be performed in any particular embodiment. The terms “comprising,” “including,” “having,” and the like are synonymous and are used inclusively, in an open-ended fashion, and do not exclude additional elements, features, acts, operations, and so forth. Also, the term “or” is used in its inclusive sense (and not in its exclusive sense) so that when used, for example, to connect a list of elements, the term “or” means one, some, or all of the elements in the list. In addition, the articles “a,” “an,” and “the” as used in this application and the appended claims are to be construed to mean “one or more” or “at least one” unless specified otherwise.

As used herein, a phrase referring to “at least one of” a list of items refers to any combination of those items, including single members. As an example, “at least one of: A, B, or C” is intended to cover: A, B, C, A and B, A and C, B and C, and A, B, and C. Conjunctive language such as the phrase “at least one of X, Y and Z,” unless specifically stated otherwise, is otherwise understood with the context as used in general to convey that an item, term, etc. may be at least one of X, Y or Z. Thus, such conjunctive language is not generally intended to imply that certain embodiments require at least one of X, at least one of Y and at least one of Z to each be present.

Similarly, while operations may be depicted in the drawings in a particular order, it is to be recognized that such operations need not be performed in the particular order shown or in sequential order, or that all illustrated operations be performed, to achieve desirable results. Further, the drawings may schematically depict one more example processes in the form of a flowchart. However, other operations that are not depicted can be incorporated in the example methods and processes that are schematically illustrated. For example, one or more additional operations can be performed before, after, simultaneously, or between any of the illustrated operations. Additionally, the operations may be rearranged or reordered in other implementations. In certain circumstances, multitasking and parallel processing may be advantageous. Moreover, the separation of various system components in the implementations described above should not be understood as requiring such separation in all implementations, and it should be understood that the described program components and systems can generally be integrated together in a single software product or packaged into multiple software products. Additionally, other implementations are within the scope of the following claims. In some cases, the actions recited in the claims can be performed in a different order and still achieve desirable results. 

What is claimed is:
 1. A system for training a neural network for determining a user interface event, the system comprising: computer-readable memory storing executable instructions; and one or more processors programmed by the executable instructions to at least: receive a plurality of images, wherein an image of the plurality of images comprises a pointer of a plurality of pointers, wherein the image is associated with a virtual user interface (UI) device of a plurality of virtual UI devices at an image location on the image, and wherein the image is associated with a UI event of a plurality of UI events with respect to the virtual UI device and the pointer in the image; render a representation of the virtual UI device onto the image at the image location to generate a training image; generate a training set comprising input data and corresponding target output data, wherein the input data comprises the training image, and wherein the corresponding target output data comprises the UI event; and train a neural network, for determining a UI event associated with the virtual UI device and the pointer, using the training set.
 2. The system of claim 1, wherein the representation of the virtual UI device comprises a plurality of shapes of high contrasts.
 3. The system of claim 2, wherein the plurality of shapes of high contrasts comprises a plurality of concentric shapes of high contrast.
 4. The system of claim 2, wherein the centers of gravity of shapes of the plurality of shapes are within a threshold distance of each other.
 5. The system of claim 4, wherein the threshold distance is
 0. 6. The system of claim 2, wherein a first shape of the plurality of shapes is associated with a first color, wherein a second shape of the plurality of shapes is associated with a second color, and wherein the first shape is adjacent to the second shape.
 7. The system of claim 6, wherein the first color is black, and wherein the second color is white.
 8. The system of claim 6, wherein the second shape is partially transparent.
 9. The system of claim 8, wherein a first region of the second shape is associated with a first transparency value, and wherein a second region of the second shape is associated with a second transparency value.
 10. The system of claim 9, wherein the second region of the second shape is further away from the first region of the second shape, and wherein the second transparency value is smaller than the first transparency value.
 11. The system of claim 6, wherein the second shape is within the first shape.
 12. The system of claim 6, wherein a third shape of the plurality of shapes has a third color, and wherein the first shape is adjacent to the first third shape.
 13. The system of claim 12, wherein third color is white.
 14. The system of claim 12, wherein first shape is within the third shape.
 15. The system of claim 1, wherein the UI event corresponds to a state of a plurality of states of the virtual UI device.
 16. The system of claim 15, wherein the plurality of states comprises activation or non-activation of the virtual UI device.
 17. The system of claim 1, wherein the plurality of virtual UI devices comprises a button, an updown, a spinner, a picker, a radio button, a radio button list, a checkbox, a picture box, a checkbox list, a dropdown list, a dropdown menu, a selection list, a list box, a combo box, a textbox, a slider, a link, a keyboard key, a switch, a slider, a touch surface, or a combination thereof.
 18. The system of claim 1, wherein the plurality of UI pointers comprises an object associated with a user or a part of the user.
 19. The system of claim 18, wherein the object associated with the user comprises a pointer, a pen, a pencil, a marker, a highlighter, or a combination thereof, and wherein the part of the user comprises a finger of the user.
 20. A method for training a neural network for determining a user interface event, the method comprising, under control of a hardware processor: receiving a plurality of images, wherein a first image of the plurality of images comprises a first representation of a pointer of a plurality of pointers, wherein the first image is associated with a first representation of a virtual user interface (UI) device of a plurality of virtual UI devices at a first image location in the first image, and wherein the first image is associated with a UI event of a plurality of UI events with respect to the virtual UI device and the pointer in the first image; rendering a first representation of the virtual UI device onto the first image at the first image location to generate a first training image; generating a training set comprising input data and corresponding target output data, wherein the input data comprises the first training image, and wherein the corresponding target output data comprises the UI event; and training a neural network, for determining a UI event associated with the virtual UI device and the pointer, using the training set. 